Functions and commands 333
texpand Expands a transcendental expression.
texpand(Expr)
Example:
texpand(sin(2*x)+exp(x+y)) returns exp(x)*exp(y)+
2*cos(x)*sin(x))
Exp & Ln
e
y*lnx
→ x
y
Returns an expression of the form e
n*ln(x)
rewritten as a power
of x. Applies e
n*ln(x)
=x
n
.
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. Essentially the inverse of exp2pow.
pow2exp(Expr)
Example:
pow2exp(a^b) gives exp(b*ln(a))
exp2trig Returns an expression with complex exponentials rewritten in
terms of sine and cosine.
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 asin(x) rewritten as /2– acos(x).
asin2acos(Expr)
Example:
asin2acos(acos(x)+asin(x)) returns /2