Glossary of Maple Commands
Numbers (See also Numerical Calculations )
| > | restart:z:=3.5; |
| > | Pi; |
| > | evalf(Pi); |
| > | evalf(Pi,37); |
| > | exp(1); |
| > | evalf(exp(1)); |
| > | sqrt(2); |
| > | evalf(sqrt(2)); |
| > | I; |
| > | floor(21.3); |
| > | ceil(15.98); |
| > | round(23.98); |
| > | frac(21.3); |
| > |
Arithmetic (See also Numerical Calculations )
| > | 2+8-6; |
| > | 21*7; |
| > | 21/7; |
:
| > | 2^5; |
:
| > | (2^3/3^7)*sqrt(3); |
| > | evalf((2^3/3^7)*sqrt(3)); |
| > | 2+3*5^3/7; |
:
| > | (2+3)*(5/7)^3; |
| > | evalf((2+3)*(5/7)^3); |
| > | (2+12)/(1+6); |
| > | (2+12)/1+6; |
| > | 5!; |
| > |
Algebra (See also Algebraic Calculations )
| > | expand((x+4)^5); |
| > | factor(x^5+20*x^4+160*x^3+640*x^2+1280*x+1024); |
| > | simplify((x+3*x+50*x^2)/2 ); |
:
| > | normal(4/(3*(x+1))-x/(3*(x-2)*x)); |
| > | solve(x^2+x=6,x); |
Note : An equation contains an equals sign. If you omit the equals sign and the right-hand-side of the equation, for example by typing solve(x^2+x,x); then Maple assumes that you mean solve(x^2+x=0,x);
| > | solve(x^2+x=3,x); |
| > | solve(x^2+x=0,x); |
| > | solve(x^2+x,x); |
| > | solve({x+y=3,x-2*y=7},{x,y}); |
| > | fsolve(x^3-7*x+1=0,x); |
| > | fsolve(x^3-7*x+1=0,x=0..1); |
+. . . +
| > | restart:sum(i^2,i=1..n); |
| > |
Functions (See also Function Notation )
| > | f:=x->x^2-3; |
| > | [sin(x),cos(x),tan(x),tan(x),cot(x),sec(x),csc(x)]; |
the inverse trig functions:
| > | [arctan(x),arcsin(x),arccos(x),arccot(x),arcsec(x),arccsc(x)]; |
and the exponential, logarithmic, square root, and absolute value functions:
| > | [exp(x),ln(x),sqrt(x),abs(x)]; |
First define the function:
| > | f:=x->x^2*exp(-x); |
| > | f(3); |
| > | f(103.65*sqrt(2)); |
If you want to evaluate any of these, use the evalf command:
| > | evalf(f(103.65*sqrt(2))); |
| > |
Graphing (See also Graphics )
| > | with(plots): |
| > | plot(sin(x),x=2..13); #to plot the sine function from x=2 to x=13 |
or define a function y=f(x) then plot it by referring to it as f(x):
| > | f:=x->x^2*exp(-x); |
| > | plot(f(x),x=-1..8); |
| > |
| > | with(plots): plot([3*sin(x),ln(x)],x=1..14); |
| > |
| > | with(plots): plot([3*sin(x),ln(x)],x=1..14,color=[green,magenta],linestyle=[3,1], thickness=[2,4]); |
| > |
| > | with(plots);#The semicolon displays the commands in this package. plot3d(x^2*exp(-x)*sin(y),x=0..2,y=0..5); |
| > |
| > | with(plots): plot3d(9-x^2*y,x=-sqrt(y)..sqrt(y),y=0..5); |
| > |
| > | with(plots): pointplot([[0,2],[3,-1],[5,7]],connect=true); |
| > |
| > | with(plots):with(plottools); #See what is in the plottools package p1:=plot(x^2,x=-2..2,color=red): aline:=line([0,0],[2,4],color=blue): circ:=circle([0,0],1,color=green): display([p1,aline,circ],scaling=constrained); |
| > |
Calculus (See also Calculus )
| > | f:=x->(x^2-7*x+10)/(x-2); #Defining the function limit(f(x),x=2); |
| > | f:=x->x^2*sin(x); diff(f(x),x); |
or
| > | f:=x->x^2*sin(x); D(f)(x); |
| > | g:=x->2*x*sin(x)+x^2*cos(x);int(g(x),x); |
| > | g:=x->2*x*sin(x)+x^2*cos(x); int(g(x),x=0..2); |
| > |
For more detailed explanations of these commands and for more commands, see the Help Menu . Simply select Help in the menu at the top of the screen, select Full Text Search , then type a word related to what you are looking for.
You can learn more about Maple by taking the New User's Tour.