## Iterated Functions...

how are iterated functions represented in maple? as in f(f(f(x))) is (x)  in conventional notation where by the reader knows it is refering to the iteration conducted 3 times on the argument x, but what does maple use to differentiate between iteration ,exponentiation and differentiation?

## why "end proc();" do not generate an error?...

when writing by error the following

restart;
f:=proc()
dsolve(diff(y(x),x)+y(x)=0,y(x));
end proc();

Maple did not complain and returned  f := y(x) = _C1*exp(-x)

Then I noticed I needed to change "end proc();" to "end proc;"

The question is, why did Maple not generate a syntax error? If "end proc();" is valid Maple code, then what does it mean? or Did Maple ignore it? what is the parsing steps used to make Maple generate the above output?

## Simple program does not work...

I have two sets

f:={1,2,3,4};

h:={1,2,4,5}

L=seq(i,i=1..4):

I want to program , if it is true that f[i] = h[i], then it prints f[i]. So the output should be {1,2}.

for i in L do
if evalb(f[i]=h[i]) then
print(f[i]);
end if;
end do;

I get no output. https://i.imgur.com/qA5hU3i.png

I tried changing the set f to list, f:= [1,2,3,4], still no output.

## How to solve this PDE system?...

bbb2.mw

 (1)

 (2)

 (3)

 (4)

 (5)

if former equations are not solvable , please help me for another way, in which at first two equation solve..in this way in equation [J and B] assume that q[311]=e[311]=0 and dsolve perform to find Φ and  ψ

after by finding Φ and  ψ is use for detemine w and u0

bbb2_2.mw

## Long Commands in Maple...

hi all,

How could I write long commands in Maple?

For instance: a long vector in Matlab could be written in this way:

A=[ 3, 4, 5, 6, 6, 45, 37...

5, 4, 67, 39, -967 ];

But what is that in Maple???

## Incorrect syntax...

Error, illegal use of an object as a name''

thanks

PLATE.mw

## Can't assign values from a procedure...

I defined a procedure, OrderB(0,b,c), that essentially determines the order of a group that is defined by 2 parameters (the first parameter is always zero), so the output is an integer and the procedure is defined for every integer value of both parameters. I wanted to structure the outputs into a matrix with columns that represent one parameter and rows that represent the other. However, whenever I try to apply a method of defining the matrix, Maple returns the values of the procedure and then gives me an empty matrix.

>f:=proc (i, j) -> OrderB(0, i, j+3);
>Matrix(3, f);
1
4
1
1
4
1
1
4
1
[NULL,NULL...]

I tried a second method where I defined a set s such that:

s:={(0,0)=OrderB(0,0,0) , (0,1)=OrderB(0,0,1).....}

but upon execution, maple returns:

1
4
1
....
s:={(0,0)=( ), (0,1)=( )...}

Please Help. I don't know what I'm mising in the code that is keeping Maple from putting the outputs of my procedure into the matrix.

## Why does Maple 2016.1 improperly treat x^2?...

When experimenting with Maple 2016.1, I found several issues. One I have seen on MaplePrimes before (regarding "Error, incorrect syntax in parse: `;` unexpected (near 4th character of parsed string)" when evaluating an integral, for example, or trying to plot something), but another I have not seen - it may be related to the previous issue. Below is a document that contains some of the various errors I found. What is going on? It evaluates certain things correctly, but, in the integral, it treats "x^2" like a whole new variable (the integral of x^2 with respect to x from 0 to 2 it says is 2x^2, not 8/3). The same thing results in trying to plot x^2 (not shown), giving the same error if I were to say something like "plot(t,x=0..2)" - it cannot determine the plotting variable.

Any ideas? Are the two things (the Error, incorrect syntax in parse: `;` unexpected (near 4th character of parsed string) message and the bad integral value) related?

## Simple graphical interface in Maple ...

How i need to write

>teksbiasa:=`Hello! Bob`;

in button Action When Clicked at simple graphical interface instead of

Do(teksbiasa=%txtTeksBiasa);

because when i enter Hello! Bob in %txtTeksBiasa, system pop up ERROR

Error

Error in Component button with caption "Botton":

(in unknown) incorrect syntax in parse: missing operator or

`;`(near 7th character of parsed string)

Thank you~=]]

## Plotting problem...

I have the following problem : plotting with the squareroot function somehow stops showing the whole graph as soon as the range of the input allows values less than -10, I have attached two pictures that show the transition:

This is still fine:

But here is an example where the graph is cropped:

How can I change this to get the whole graph ? Thanks a lot for your help !!

## Problem with ODE system...

I'm trying to solve a system of two differential equations of the second order in Maple. I set it up as a system of four differential equations of the first order, but after calling for the solution, all I get back is what I entered in without receiving a solution of any sort. What do I need to fix?

Here's what I did:

_________________________________________________

> with(plots);
print(`output redirected...`); # input placeholder

> m := 0.46e-1; d := 0.42e-1; v := 60; alpha0 := 12; g := 9.81; pa := 1.205; cd := .2; n := 100; omega := 2*Pi*(1/60);

> p := 6*m/(Pi*d^3);

> k1 := (3/4)*cd*pa/(d*p); k2 := (3/8)*omega*pa/p;

> gl1 := vx(t) = diff(x(t), t);
> gl2 := vy(t) = diff(y(t), t);

> gl3 := diff(vx(t), t) = -k1*vx(t)*(vx(t)^2+vy(t)^2)^(1/2)-k2*vy(t);

> gl4 := diff(vy(t), t) = -g-k1*vy(t)*(vx(t)^2+vy(t)^2)^(1/2)+k2*vy(t);

> init1 := x(0) = 0;
> init2 := y(0) = 0;
> init3 := vx(0) = v*cos((1/15)*Pi);
> init4 := vy(0) = v*sin((1/15)*Pi);

> sol; dsolve({gl1, gl2, gl3, gl4, init1, init2, init3, init4}, {vx(t), vy(t), x(t), y(t)}, type = numeric);

> sol(.1);
sol(0.1)

> odeplot(sol, t, x(t), t, y(t), t = 0 .. 1);
Error, (in plots/odeplot) input is not a valid dsolve/numeric solution

____________________________________________________________________________

After calling for the solution at t=0.1, I don't get anything back. I also tried plotting the solution, but then I receive an error message.

## Nested for loops...

So, I am working in a partial differeital equations course and we are doing image processing. I am taking an image and pixel by pixel applying the heat equation to smudge out noise. I created a for loop for the equation and it works, I need to itterate it over and over again. Here is my code:

for t from 1 to 20 do

for j from 2 to 149 do

for k from 2 to 149 do

`tile2__j,k`:=dellT/(h^(2))*(`tile__j+1,k`-4*`tile__j,k`+`tile__j-1,k`+`tile__j,k-1`)+`tile__j,k`

end do

end do

for m from 2 to 149 do

for n from 2 to 149 do

`tile__m,n`:= `tile2__m,n`

end do

end do

t := t+1

end do

Sorry, I could not get the Maple Math editor to work so I just copied my code. Apologize. I keep getting the error "Error, Invalid loop statement termination." Help?

## Problem with implicitplot3d...

Hi, I have defined two functions:

ex1 := (x,t,z) -> -1.132*10^(11)* exp(9.9*10^(6)*x)*exp(sqrt(-1)*(1.95*10^6*z-2.98*10^15*t))

ex2 := (x,t,z) -> -2.82*10^(12)* exp(2*10^(6)*sqrt(-1)*x)*exp(sqrt(-1)*(1.95e*10^(6)*z-2.98*10^(15)*t));

And then tried the command:

implicitplot3d( ex1, x = -10..0, t = 0..10, z = 0..10, axes = boxed, style = patchcontour, scaling = constrained, shading =z);

But the boxes are entirely blank! What is the problem here?? It should be some kind of sine curve

 1 2 3 4 5 6 7 Page 3 of 9
﻿