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:

Remainder

Function: remainder (<p_1>, <p_2>)

sqfr(x^3-9);
remainder(expand((x^3+1)^3-2),a^3-9,a);
h:expand((x^2+2*x+5)^2*(x-1)^3*(x+2)*(x+1)^1);
g:gcd(h,diff(h,x));
c[1]:rat(h/g);
d[1]:rat(diff(h,x)/g-diff(c[1],x));
i:1;
while c[i]#1 do (/*print("c[",i,"]=",c[i]),*//*print("d[",i,"]=",d[i]),*/f[i]:gcd(c[i],d[i]),if f[i]#1 then (print("f[",i,"]=",f[i])),c[i+1]:rat(c[i]/f[i]),d[i+1]:rat(d[i]/f[i]-diff(c[i+1],x)),i:i+1);

Function: remainder (<p_1>, <p_2>, <x_1>, ..., <x_n>) Returns the remainder of the polynomial <p_1> divided by the polynomial <p_2>. The arguments <x_1>, ..., <x_n> are interpreted as in ratvars.

remainder returns the second element of the two-element list returned by divide.

(%o1)                                true
(%i2) 

Related Examples

remainder

remainder(1638, 37);

Calculate

remainder

remainder(1498, 37);

Calculate

remainder-resultant

A:u^4+p*u^2+q*u+r;

B:v^2+a*v+b-u*(c*v^2+...

C:resultant(A,B,u);

Calculate

remainder

A:x^2-7;

B:x+2;

C:remainder(A,B,x);

Calculate

remainder

remainder(1342, 37);

Calculate

remainder

? remainder;

Calculate

remainder

A:x^3+a*x+b;

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

C:remainder(A,B,x);

Calculate

remainder-resultant

A:u^4+p*u+q;

B:v^3+b-u*v^2;

C:v^4-k;

Calculate

remainder-resultant

A:x^3+a*x+b;

B:y^2+p*y+q-x;

C:resultant(A,B,x);

Calculate

remainder-resultant

A:x^3+a*x+b;

B:y^2+p*y+q-x;

C:resultant(A,B,x);

Calculate