Maple
Maple 6: A
quick reference (by D. Meade, U. South Carolina)
The program is started by
maple
It is ended by
quit
Help
?topic - give you help on topic
?topic,subtopic - help on a subtopic
?index - help index
There are three books about Maple somewhere around in the department.
Points to remember
-
; All expessions must end with ; followed by return.
-
: If you do not want any output, used : instead.
-
* All multiplications must be explicitly indicated by *
-
" The last results is retrieved by ". "" is the second last, """
the third last.
-
() You must use parenthesis around negative numbers in experssions, e.g.
-5*(-2)
-
:= assignement is done by :=
-
[] parts of an array are indexed by array[1]; arrays are defined using
[].
-
{} sets are defined using {}
-
assign(solution) assigns the values of solution to the corresponding unknowns
(p.17)
-
unassignment is done by x:='x';
-
subs(var=replacement, experssion)
-
10 digits is the standard presision; it is changed by Digits=20;
-
.. ranges are given by 0.1..1.5
Unusual function names
-
evalf(experssion, digits) - evaluate an experssion with a given number
of digits
-
fsolve - numerical solve
-
iquo(x,y) - integer division
-
irem(x,y) - integer remainder
-
plot(sin(1/x),x=0.1..1.5);
-
interface(plotsetup=psotscript, plotoutput=file); - write a plot to file
file in postscript.
Examples
h:=[5.162, 35.218, 18.775];
c:=[7.050, 34.960, 18.716];
h-c;
[-1.888000, .258000, .059000]
eqn:={1.2 x - 1.9 y + .5 z = 0, -1.5 x + .3 y + 2.0 z = -.3, -.9
x + .1 y - .1 z = 2.8}
solve(eqn,{x,y,z});
{y = -2.556319862, x = -3.157924907, z
= -2.134995701}