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.

T1:x^2+8*x+15;
divide(T1,x-3);
T2:x^2-8*x+15;
divide(T2,x-3);
divide(T2,x-5);
divide(T2,x-4);
T3:x^3+3*x^2+3*x+1;
T4:x^2+2*x+1;
divide(T3,T4);

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-expand

divide(expand((x+y-z)...

Calculate

divide-solve-subst

p:z^3+6*z^2+12*z+9;

subst(-3,z,p);

q:divide(p,z+3)[1];

Calculate

divide-subst

eq: (yx+1)*(x^2-y)^2-...

P=divide (eq, x^2-y+z);

subst(a,x^2-y,P);

Calculate

divide

divide(2*x^3+10*x^2+1...

Calculate

divide-num-ratsimp

num : 1-1*z-4*z^2+4*z^3;

den : 1-11/4*z+13/8*z...

t:divide(num, den, z);

Calculate

divide

divide(14,4);

Calculate

divide

A : x^2+p*x+q;

B : x^4+p*x^2+q;

divide(A,B,x);

Calculate

divide

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

Calculate

divide

divide(2*x^3+10*x^2+1...

Calculate

divide-load

load("grobner");

poly_pseudo_divide(x^...

Calculate