distrib SciMax Toolbox divisors

SciMax Toolbox >> divide

divide

Maxima Function

Calling Sequence

divide (p_1, p_2, x_1, ..., x_n)

Description

computes the quotient and remainder of the polynomial p_1 divided by the polynomial p_2, in a main polynomial variable, x_n.

The other variables are as in the ratvars function. The result is a list whose first element is the quotient and whose second element is the remainder.

Examples:

(%i1) divide (x + y, x - y, x);
(%o1)                       [1, 2 y]
(%i2) divide (x + y, x - y);
(%o2)                      [- 1, 2 x]

Note that y is the main variable in the second example.

distrib SciMax Toolbox divisors