0% found this document useful (0 votes)
79 views

Maple & Mathematica Commands

This document lists common commands used in Maple and Mathematica for calculus and plotting. Some key commands include Pi to input pi, trigonometric functions like sin and cos, exponential and factorial functions, differentiation with diff/D, integration with int/Integrate, solving and graphing functions, and Taylor series approximations. Both software use similar syntax but with some differences like parentheses versus square brackets for arguments.

Uploaded by

Stephen
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
79 views

Maple & Mathematica Commands

This document lists common commands used in Maple and Mathematica for calculus and plotting. Some key commands include Pi to input pi, trigonometric functions like sin and cos, exponential and factorial functions, differentiation with diff/D, integration with int/Integrate, solving and graphing functions, and Taylor series approximations. Both software use similar syntax but with some differences like parentheses versus square brackets for arguments.

Uploaded by

Stephen
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Possible Maple Commands Used in the Assignment

COMMAND FUNCTION OF THE COMMAND


Pi Gives  (must have a capital P)
cos(x) cosine of x radians (argument must be in parentheses)
sin(x) sine of x radians (argument must be in parentheses)
exp(x) ex
n! n factorial
factor (expr); factors polynomials
expand ( expr); algebraically expand expression
solve (f(x)=0, x); symbolically solves equation for x
fsolve (f(x)=0, x); numeric solution of equation
evalf (expr); evaluate expression using decimals
plot(f(x), x = a .. b); graph f(x) on domain [a, b]
plot ( { f(x), g(x)}, x=a..b); graph f(x) and g(x) on the same domain [a, b]
sqrt(x) square root of x
with(plots); loads plots package do this every time you start Maple
implicitplot(f(x,y),x=a..b,y=c .. d) graphs relation f(x,y) = 0
polarplot(f(theta), theta=a..b) graphs a polar function on a polar axes
diff( expr, x) derivative of expression with respect to x
diff(f(x), x) derivative of f(x) with respect to x
int( f(x) , x) indefinite integral
int(f(x),x=a .. b) definite integral of f(x) from a to b
int(f(x),x=a .. infinity) improper definite integral of f(x) from a to infinity
convert(1/p(x), parfrac, x); expands into partial fractions
a:=n→evalf( f(n)) defines function a which takes n to f(n)
q:=seq([ n,a(n) ],n= 1..25) generates a sequence of ordered pairs from n= 1 to n=25
plot([q],n= 1 .. 25, 0 .. 1/2, style=point, symbol=circle)
plots the points generated above and uses circles to mark the points
limit(f(n), n=infinity) finds the limit of f(n) as n approaches infinity
sum(f(n), n=1..infinity) finds the sum of the expression f(n) from n = 1 to infinity
evalf(%) gives a decimal approximation of the previous answer
taylor(f(x), x=a, n) gives Taylor polynomial of order n-1 for f(x) about x=a
convert(taylor(f(x), x, n), polynom) converts the result of a Taylor command to a polynomial
Possible Mathematica Commands Used in the Assignment
COMMAND FUNCTION OF THE COMMAND
Pi Gives  (must have a capital P)
Cos[x] cosine of x radians (capital letter, argument must be in square brackets)
Sin[x] sine of x radians (capital letter, argument must be in square brackets)
Exp[x] ex (capital letter, argument must be in square brackets)
n! n factorial
Factor [polynomial] factors polynomials
Expand [expr] algebraically expand expression
Apart[rational expression] gives the partial fractions expansion
Solve [f(x)==0, x] symbolically solves equation for x
N[expression] evaluate expression using decimals
Plot[f(x), {x, a, b}] graph f(x) on domain [a, b]
Plot[ { f(x), g(x)}, {x, a, b}] graph f(x) and g(x) on the same domain [a, b]
Sqrt[x] square root of x
Log[x] gives the natural logarithm of x
Log[b, x] gives the logarithm base b of x
CountourPlot[f(x,y)==c, {x, a, b}, {y, c, d}] graphs relation f(x,y) = c over the given window
PolarpPot[f(), {, }] graphs a polar function on a polar axes
D[f(x), x] derivative of f(x) with respect to x
Integrate[ f(x) , x] indefinite integral
Integrate[ f(x) , {x, a, b}] definite integral of f(x) from a to b
Integrate[ f(x) , {x, a, Infinity] improper definite integral of f(x) from a to infinity
Table[f(n), {n, a, b}] generates a sequence f(n) from n = a to n = b
DiscretePlot[f(n), {n, a}] generates a plot of the values of f(n) where n runs from 1 to a
Limit[f(x), x->a] finds the limit of f(x) as x approaches a
Limit[f(x), x->Infinity] finds the limit of f(x) as x approaches infinity
Sum[f(n), {n, a, Infinity}] finds the sum of the expression f(n) from n = a to infinity
Series[f(x), {x, a, n}] gives Taylor polynomial of order n for f(x) about x=a
Normal[Series[f(x), {x, a, n}]] converts the result of a Series command to a polynomial

You might also like