Next: Polynomials, Previous: Algebraic Commands, Up: Algebra [Contents][Index]
The function num takes a rational expression as input and
returns a numerator of the expression.
e25 : num((x^2+y^2)/(x^2-y^2));
2 2
e25: - x - y
e26 : num(7/4);
e26: 7
e27 : num(7/(4/3));
e27: 21
The Jacal command denom is used to obtain the denominator of a
rational expression.
e26 : denom(4/5); e26: 5
The command listofvars takes as input a rational expression and
returns a list of the variables that occur in that expression.
e7 : listofvars(x^2+y^3); e7: [x, y] e8 : listofvars((x^2+y^3)/(2*x^7+y*x+z)); e8: [z, x, y]
Returns the coefficient of %i in expression z;
Returns all but the coefficient of %i in expression z;