Items tagged with automatic

I'm doing an interactive component and i need to plot a function and some points (which can change).
My question is if is it possible display the graphic with a value of automatic Plot Ranges.
For example the graphic would started with the first point and finisched with the last, like in this image (but i did it manually).

I want a sort of autozoom.

It's funny how Maple automatically evaluates an expression, it can be frustrating at times, but suppose the user wants it entered the way he types.


                   - sin ( 4 + Phi)  #automatically evaluates the negative outside


                   - sin (-x -y -z + Phi)


Even though both expressions are the same it seems Maple prefers -sin to +sin, in the second example above Maple has now 3 extra negatives. 

Is all we need just a double set of single quotes around our expression so that when we recall that variable it returns exactly how we entered it in?

b:= ''sin(x+y+z-Phi)''

           b:= ' sin(x+y+z-Phi) '



      sin( x + y + z - Phi)


Would that work?  Where would that fail?  Is there a better way?

How do I make maple to show the values of my variables in my calculation automatically? I want it to look somewhat like this:

Instead of this:


I have this (which finds each Fourier term of a sequence)

term := proc(lst,k::integer)
    local n;
    n := nops(lst);     
    seq(lst[m+1]*exp(-I * 2*Pi/n *(k*m)),m=0..n-1);
end proc;

Now I call it as


and it returns

So it evaluated and convert the exp(-I * 2*Pi/n *(k*m)) terms. I wanted to keep these as is, so I can compare result with textbook. Then do simplify if I wanted to above output. 

I can do that if I use small pi instead of large Pi, like this

term := proc(lst,k::integer)
    local n;
    n := nops(lst);     
    seq(lst[m+1]*exp(-I * 2*pi/n *(k*m)),m=0..n-1);
end proc;

and now r:=term([1,2,3],1); return

Which is what I wanted, but with Pi instead of pi.  now how would I evaluate the above?

I tried to use subs to replace small pi with large Pi, but it does not work

subs(pi=Pi,r); #error

Then I tried eval, which worked


So, I can use the above method.

My question is: Is the above a common way to handle such case? Is there another way to use Pi but at the same time prevent Maple from automatic simplification of the exp() terms?





Hi all,

I want to design a procedure which can generate multiple loop automatically. While I  assign a value to it, it will create a multiple loop with same number of layers.    

For example,


for i from 1 to n do
end do:



for i from 1 to n do

for j from 1 to n do

end do: end do:








I'd appreciate any help on this topic. Thank a lot.


Hello, my problem is that I've changed in tools maple default mode to "Maple input" from "2-d" I've aplied it globbaly and it doesnt'work. Still when type Enter it switch automatically to 2-d Math, and I have to change it by Ctrl-M to 1-d. Any ideas how to solve it? I want 2-d just to output.

Consider the function



The above definition may result in four cases depening on r and x.

Can Maple calculate automatically all possible cases and the corresponding Maxima, Minima and Values at intervals limits?


Having solution of an inequations system, is there a way/function/algorithm to find a particular numeric solution (as simplex[minimize] can do) ?


Q := {1 < x - y, x + y < 1};

R := solve(Q);

      { x < 1 - y, y < 0, y + 1 < x }

manually it's easy to find some numeric solutions:

      y = -1, x = 1
      y = -2, x = 0

but I need an automatic way.

Thank you for your help


Hi -


    It is often useful useful to generate two procedures --- one to evaluate a function and one to evaluate its gradient.  The procedure codegen[GRADIENT] does not treat functions of array variables.  Why doesn't GRADIENT support array variables?  Would it be possible to replace the array variables by variables, apply GRADIENT, and then replace the array variables by variables again?


Best wishes,




I have entered two functions and got a solotion for them:

Now i want to know if there is someway Maple can do this automaticly:


So that i not have to do like i did here, manuel copy-paste the values into the function, or re-enter them.


Using Maple 17.02 on Windows 64-bit, but i guess that makes no differance, since it's java :) 


Try makeing it simple, i'm new with Maple.


Thanks in advance!

Emil Kristensen


Does anyone know if you can schedual a task in maple ie at 12:00 add a number
to a matrix in a worksheet (Just an simple example to see if it is working)

In windows you can use the "Task Scheduler" to automate stuff that you need to repeat.

Also I dont want the actuall Maple software to actually launch at 12:00, I want everything to happend
in the background.

If you put the maple commands in the "start up code region" of the worksheet I guess it

Page 1 of 1