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.

f:x^4+x^3-x-1;
g:diff(f,x);
p0:f;
p1:g;
a:divide(p0,p1,x);
p2:-a[2];
a:divide(p1,p2,x);
p3:-a[2];
a:divide(p2,p3,x);
p4:-a[2];

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

divide(-67,23);

Calculate

divide-load

load(grobner);

poly_monomial_order: ...

poly_s_polynomial(z*z...

Calculate

divide-ev-simp

a:rand_with_prohib(-5...

b:rand([-3,-2,-1,0,1,...

c: ev((b+rand_with_pr...

Calculate

divide

divide(a^4+b^4, a+b);

Calculate

divide-factor

F1: r1^3-r2^3;

factor(F1);

divide((1-Q*rho1^r-(z...

Calculate

divide

divide(6*x**9+4*x**7+...

Calculate

divide-load

load(grobner);

poly_monomial_order:'...

s:poly_s_polynomial(x...

Calculate

divide-load

load(grobner);

poly_monomial_order:'...

a1:x^2*y-1;

Calculate

divide

divide(x^5+3*x^4-5*x^...

Calculate

divide

divide(3*x^2-2*x+1, x...

Calculate