Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Divide Calculator

Divide

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(x^4+7*x^3+2*x^2-3*x-5,3*x^2-x+1);

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) 

Divide Example

Related Examples

divide-load

load("grobner");

poly_pseudo_divide(x^...

Calculate

divide-fullratsimp

fullratsimp((-21*x**5...

divide((-63*x**4-54*x...

divide((-1029*x**3+28...

Calculate

divide

divide(2*x^3-2*x,36*x...

Calculate

divide-factor-quotient-remainder

u:12*x^4-9*x^3-17*x^2...

factor(u);

u1:3*x^2-5;

Calculate

divide

divide(x^3 +4*x^2+x-6...

Calculate

divide

divide(x^3,2*x);

Calculate

divide-load

load("grobner");

poly_pseudo_divide(x^...

Calculate

divide-load

load("grobner");

poly_pseudo_divide(x^...

Calculate

divide-expand

u:expand((x+2)*(x-1)*...

v:expand((1-3*x)*(x-a));

divide(u,v,x);

Calculate

divide

divide(x+y^2+y, y^2-1);

Calculate