Functions and commands 323
Substitute Returns the solution when a value is substituted for a variable
in an expression.
subst(Expr,Var(v)=value(a))
Example:
subst(1/(4+x^2),x=2) gives 1/8
Partial Fraction Returns the partial fraction expansion of a rational fraction.
partfrac(RatFrac)
Example:
partfrac(x/(4-x^2)) gives (1/(x-2)*-2))+(1/
((x+2)*-2))
Extract
Numerator Returns the numerator of a fraction (after simplifying the
fraction if necessary).
numer(Frac(a/b) or RatFrac)
Example:
numer(10,12) returns 5
Denominator Returns the denominator of a fraction (after simplifying the
fraction if necessary).
denom(Frac(a/b) or RatFrac)
Example:
denom(10,12) returns 6
Left Side Returns the left side of an equation or the left bound of an
interval.
lhs(Equal(a=b) or Interval(a...b))
Right Side Returns the right side of an equation or the left bound of an
interval.
rhs(Equal(a=b) or Interval(a...b))
Calculus
Differentiate With one expression as argument, returns derivative of the
expression with respect to x. With one expression and one
variable as arguments, returns the derivative or partial
derivative of the expression with respect to the variable. With