Functions and commands 331
tExpand Returns a transcendental expression in expanded form.
tExpand(Expr)
Example:
tExpand(sin(2*x)+exp(x+y)) gives
2*cos(x)*sin(x)+exp(x)*exp(y)
Exp & Ln
e
y*lnx
→ x
y
Returns an expression of the form exp(n*ln(x)) rewritten as a
power of x.
exp2pow(Expr)
Example:
exp2pow(exp(3*ln(x))) gives x^3
x
y
→ e
y*lnx
Returns an expression with powers rewritten as an
exponential.
pow2exp(Expr)
Example:
pow2exp(a^b) gives exp(b*ln(a))
exp2trig Returns an expression with complex exponentials rewritten in
terms of sin and cos.
exp2trig(Expr)
Example:
exp2trig(exp(i*x)) gives cos(x)+(i)*sin(x)
expexpand Returns an expression with exponentials in expanded form.
expexpand(Expr)
Example:
expexpand(exp(3*x)) gives exp(x)^3
Sine
asinx → acosx Returns an expression with arcsin(x) rewritten as pi/2-
arccos(x).
asin2acos(Expr)
Example:
asin2acos(acos(x)+asin(x)) gives -
acos(x)+acos(x)