List of Maple commands:
| Command | Syntax | Example | Remarks |
| % | sin(Pi/4); evalf(%); | previous output | |
| animate | animate(F(x,t), x=a..b, t=c..d); | animate( sin(x*t), x = -2*Pi..2*Pi, t = 1..5); | click on graph to get player controls |
| ceil | ceil(x); | ceil(Pi); | ceil - smallest integer greater than or equal to a number |
| convert | convert(expr, form) | convert(taylor(sin(x),x=Pi/4,6),polynom); convert(sinh(x), exp); |
|
| D | D(function) | f:=x->sqrt(x^2+1); D(f); (D@@2)(f); #second derivative |
f must be a previously defined function, returns a function |
| diff | diff(epxression,x); | diff(sqrt(x^2+1),x); diff(sqrt(x^2+1),x$3); #third deriv. |
find derivative of an expression |
| display | plots[display](A,B); | A:=plot(sin(x), x =
-Pi..Pi): B:=plot(cos(x), x = -Pi..Pi, style = point): plots[display](A,B); |
displays 2 or more plots on the same axes |
| evalf | evalf(expression); | evalf(sin(Pi/4)); | floating point evaluation |
| exp | exp(expression); | exp(x^2+1); | Exponential function |
| expand | expand (expr); | expand ((x-2)*(x+5)^3); | |
| factor | factor (expr); | factor (x^4-y^4); | |
| floor | floor(x); | floor(Pi); | floor - greatest integer less than or equal to a number |
| for | |for <name>| |from <expr>| |by <expr>| |to <expr>| |while <expr>| do <statement sequence> end do; | for k from -2 to 20
by 2 do print(3*k) end do; |
|
| fsolve | fsolve(eqns, vars, options); | fsolve(sin(x)=1/x, x=0..2); fsolve(sin(x)=1/x, x=2..4); | can search for solutions in a particular interval |
| function definition | f := x->expression; | f := x-> x* (1-x); | |
| implicitdiff | implicitdiff(eqn, y, x) | implicitdiff(x^2+2*x*y+y^2=x*y,y,x); | find dy/dx when given an equation in variables x and y |
| implicitplot | implicitplot(expr1,x=a..b,y=c..d,<options>) | with(plots): implicitplot(x^2 + y^2 = 1,x=-1..1,y=-1..1); |
plot an equation in x and y |
| Int, int | int(expr,x); int(expr,x=a..b); |
Int(exp(x)*sin(x),x);
value(%); Int(exp(-x^2),x=0..1); evalf(%); |
indefinite, definite
integration Int is the "inert" form, and is not evaluated |
| limit | limit(expression,x=a,dir); | limit(sin(x)/x,x=0,right); Limit(exp(-x),x=infinity); value(%); |
Use Limit for the "intert" form, and follow with the value(%) command to evaluate. |
| Pi | Pi; | Pi; | |
| plot | plot([expr1, expr2], x=a..b); | plot (f(x), x = -10..10); plot([sin(x),1/x], x=-5..5); plot([sin(x),1/x], x=-5..5, y=-5..5); |
use the help command ?plot[options] to get details on more options |
| printf | printf(format, x1, ...,xn); | printf("%5.5f %5.10f
%5.10f\n", a,evalf(f(a)),evalf(f(-a))); |
based on a C standard library function of the same name. It uses the formatting specifications in the format string to format and display the expressions. |
| readstat | readstat(prompt); | x0 := readstat( "enter value of x to center your zoom: " ); | user is prompted to enter data at execution time |
| restart | restart; | clears memory | |
| showtangent | with(student): showtangent (f(x), x = a) |
with(student): showtangent(x^2+5, x = 2); |
displays tangent line to graph of f(x) at point x=a. |
| simplify | simplify (expr); | simplify((x^2-1)/(x-1)); simplify(exp(x+ln(y*exp(z)))); |
|
| solve | solve(eqns, vars); | solve(sin(x)=1/x, x);
evalf(%); solve({2*a+3*b=5,4*a-5*b=7},{a,b}); |
solve an equation or a system of equations |
| subs | subs(x=a,expr); | subs(x=3,exp(x^2+1)); | substitute into an expression |
| surd | surd(x,n); | surd(x,3); | restricts to the real nth root of a real number |
| taylor | taylor(expr, x=c, n) | taylor(sin(x),x=Pi/4,6); | use "convert" to eliminate the error term |
| textplot | with(plots): textplot ( [x0,y0,"text you want"]); |
with(plots): textplot ( [1,3, "text you want"]); |
place text anywhere on a graph |