Beruflich Dokumente
Kultur Dokumente
2012
Maple
Algebra
Simple Tools
Maple
Algebra
Simple Tools
Maple
Algebra
Simple Tools
gives. . .
Maple
Algebra
Simple Tools
gives. . .
expr
Maple
Algebra
Simple Tools
gives. . .
numer(expr)
denom(expr)
expr
Maple
Algebra
Substitution
Maple
Algebra
Substitution
subs(var=value,expr)
expression expr.
substitute
value
for
var
in the
Maple
Algebra
Substitution
subs(var=value,expr)
expression expr.
substitute
eval(expr,var=value)
by value.
evaluate
value
expr
for
var
in the
when
var
is replaced
Maple
Algebra
Substitution
subs(var=value,expr)
expression expr.
substitute
value
for
var
in the
Maple
Algebra
Substitution
subs(var=value,expr)
expression expr.
substitute
value
for
var
in the
algsubs(var=value,expr)
expression expr. This is
substitute
value
for
var
in the
Maple
Algebra
Simplify
simplify((x 2+2*x+1)/(x+1))
gives
x + 1.
Maple
Algebra
Simplify
simplify((x 2+2*x+1)/(x+1))
simplify(sin(x) 2+cos(x) 2)
gives
gives
x + 1.
1.
Maple
Algebra
Factor
Obviously this factors a polynomial.
factor(x 2+2*x+1
gives
(x + 1)2 .
Maple
Algebra
Factor
Obviously this factors a polynomial.
(x + 1)2 .
factor(x 2+2*x+1
gives
factor(x 3-2)
x3 2.
gives
Maple
Algebra
Factor
Obviously this factors a polynomial.
(x + 1)2 .
factor(x 2+2*x+1
gives
factor(x 3-2)
x3 2.
gives
factor(x 3-2,2
(1/3))
gives
x2 + x 3 2 + 22/3 x + 3 2 .
Maple
Algebra
Factor
Obviously this factors a polynomial.
(x + 1)2 .
factor(x 2+2*x+1
gives
factor(x 3-2)
x3 2.
gives
factor(x 3-2,2
(1/3))
gives
x2 + x 3 2 + 22/3 x + 3 2 .
If the second argument is neglected, then
factor
assumes
you want it done over the obvious eld. E.g. when all
coecients are integers,
factor
Maple
Algebra
Factor
Obviously this factors a polynomial.
(x + 1)2 .
factor(x 2+2*x+1
gives
factor(x 3-2)
x3 2.
gives
factor(x 3-2,2
(1/3))
gives
x2 + x 3 2 + 22/3 x + 3 2 .
If the second argument is neglected, then
factor
assumes
you want it done over the obvious eld. E.g. when all
coecients are integers,
factor
factor(x 3-2,real)
x2
(x 1.25992104989487319)
+ 1.25992104989487319 x + 1.58740105196819936
gives
Maple
Algebra
Collect
collect((x-a)*(x-b),x)
gives
x2 (a + b)x + ab.
Maple
Algebra
Collect
collect((x-a)*(x-b),x)
gives
x2 (a + b)x + ab.
collect(exp(x)+4*exp(x)+x*exp(x)+x*exp(2*x)+exp(2*x),
[exp(x), exp(2*x)]) gives (5 + x)ex + (x + 1)e2x .
Maple
Algebra
Expand
expand((x+1)*(x+1))
gives
x2 + 2x + 1.
Maple
Algebra
Expand
expand((x+1)*(x+1))
gives
x2 + 2x + 1.
(5+x)*exp(x)+(x+1)*exp(2*x)
5 ex
xex
(ex )2 x
(ex )2 .
gives
Maple
Calculus
Integration
int(x 2,x)
gives
int(x 2,x=0..3)
1 3
3x
gives 9
int(x 2,x=0..sin(2))
gives
Int(x 2,x=0..sin(2))
gives
Int
is the
inert
form of
1
3
sin(2)3
R sin(2)
int.
x2 dx
evalf(Int(x 2,x=0..sin(2)));
gives 0.2506089816
Maple
Calculus
Dierentiation
di(expr,x$n)
di(x 2,x)
Di(x 2,x)
D(f )
takes the
gives
nth
derivative of an expression
gives 2
d 2
gives
dx x
function
f:=x->x 2; h:=D(f );
D(f )(3)
D(D(f ))
gives
h(x) = 2x,
and
h(3)
gives 6 as well.
gives a constant function with value 2
gives 6.
Maple
Calculus
Limits
limit(sin(x)/x,x=0)
gives 1
limit((x 2-4)/(x+2),x=-2)
Limit((x 2-4)/(x+2),x=-2)
another inert form
gives -4
gives
limx2
x2 4
x+2 ;
Maple
Calculus
Series
s:=series(exp(x),x=0,5)
1 + x + 12 x2 + 16 x3 +
gives
1 4
24 x
+ O(x5 ).
Maple
Calculus
Series
s:=series(exp(x),x=0,5)
1 + x + 12 x2 + 16 x3 +
gives
1 4
24 x
+ O(x5 ).
ps:=convert(s,polynom)
Maple
Calculus
Series
s:=series(exp(x),x=0,5)
1 + x + 12 x2 + 16 x3 +
gives
1 4
24 x
+ O(x5 ).
ps:=convert(s,polynom)
We can convert that to a function using
fps:=unapply(ps,x) ;
Maple
Calculus
Simple plots
plot([exp(x), fps(x)], x = -4 .. 4)
Maple
Calculus
Simple plots
Maple
Calculus
Simple plots
Maple
Calculus
Simple plots
Maple
Calculus
Simple plots