Function: divide (<p_1>, <p_2>, <x_1>, ..., <x_n>) 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.
(%i1) divide (x + y, x - y, x); (%o1) [1, 2 y] (%i2) divide (x + y, x - y); (%o2) [- 1, 2 x]
y is the main variable in the second example.
There are also some inexact matches for
?? divide to see them.
(%o1) true (%i2)