Functions and commands 325
Substitute Substitutes a value for a variable in an expression.
Syntax: subst(Expr,Var=value)
Example:
subst(x/(4-x^2),x=3) returns -3/5
Partial Fraction Performs partial fraction decomposition on a fraction.
partfrac(RatFrac or Opt)
Example:
partfrac(x/(4-x^2)) returns (-1/2)/(x-2)-(1/2)/
((x+2)
Extract
Numerator Simplified Numerator. For the integers a and b, returns the
numerator of the fraction a/b after simplification.
numer(a,b)
Example:
numer(10,12) returns 5
Denominator Simplified Denominator. For the integers a and b, returns the
denominator of the fraction a/b after simplification.
denom(a/b)
Example:
denom(10,12) returns 6
Left Side Returns the left side of an equation or the left end of an
interval.
left(Expr1=Expr2) or left(Real1..Real2)
Example:
left(x^2-1=2*x+3) returns x^2-1
Right Side Returns the right side of an equation or the right end of an
interval.
right(Expr1=Expr2) or right(Real1..Real2)
Example:
right(x^2-1=2*x+3) returns 2*x+3