partfrac(x/(4-x^2)) returns (-1/2)/(x-2)-(1/2)/((x+2)
Algebra – Extract
Numerator
Simplied Numerator. For the integers a and b, returns the numerator of the fraction a/b after simplication.
numer(a/b)
Example:
numer(10/12) returns 5
Denominator
Simplied Denominator. For the integers a and b, returns the denominator of the fraction a/b after
simplication.
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
Calculus
Dierentiate
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 one expression and more than one variable as arguments, returns the derivative of the
expression with respect to the variables in the second argument. These arguments can be followed by $k (k is
an integer) to indicate the number of times the expression should be derived with respect to the variable. For
example, di(exp(x*y),x$3,y$2,z) is the same as di(exp(x*y),x,x,x,y,y,z).
diff(Expr,[var])
or
diff(Expr,var1$k1,var2$k2,...)
366 Chapter 22 Functions and commands
Komentarze do niniejszej Instrukcji