Online Algebra Calculator
Many of users do not use powerful Maxima computer algebra system for systematic work, but for ad hoc algebraic calculations – equations, functions, matrixes, etc. only. To do this job, it is not useful to download the whole application from a web site.
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.
![Divide Example load("grobner");
poly_pseudo_divide(x^2+y^2+2,[x,y],[y,x]);](http://maxima-online.org//plot.html?g=i-1604181741.png&t=img&db=r-1049994069)
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.
There are also some inexact matches for divide. Try ?? divide to see them.
(%o1) true (%i2)