prem - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


prem

pseudo-remainder of polynomials

sprem

sparse pseudo-remainder of polynomials

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

prem(a, b, x, 'm', 'q')

sprem(a, b, x, 'm', 'q')

Parameters

a, b

-

multivariate polynomials in the variable x

x

-

indeterminate

m, q

-

(optional) unevaluated names

Description

• 

The function prem  returns the pseudo-remainder r such that

m⁢a=b⁢q+r

  

where degree⁡r&comma;x<degree⁡b&comma;x and m (the multiplier) is:

  

 

m=lcoeff⁡b&comma;xdegree⁡a&comma;x−degree⁡b&comma;x+1

• 

If the fourth argument is present it is assigned the value of the multiplier m defined above.  If the fifth argument is present, it is assigned the pseudo-quotient q defined above.

• 

The function sprem has the same functionality as prem except that the multiplier m will be smaller, in general, equal to lcoeff⁡b&comma;x to the power of the number of division steps performed rather than the degree difference. If both a and b are multivariate polynomials with integer coefficients, then m is the (unique) smallest possible multiplier with positive leading coefficient that makes the pseudo-division fraction free.

• 

When sprem can be used it is preferred over prem because it is more efficient.

Examples

> 

a≔x4+1&colon;b≔c⁢x2+1&colon;

> 

r≔prem⁡a&comma;b&comma;x&comma;m&comma;q&colon;

> 

r,m,q

c⁢c2+1,c3,c⁢c⁢x2−1

(1)
> 

r≔sprem⁡a&comma;b&comma;x&comma;m&comma;q&colon;

> 

r,m,q

c2+1,c2,c⁢x2−1

(2)
> 

f≔4⁢x2+2⁢x+1&colon;g≔2⁢x+1&colon;

> 

r≔prem⁡f&comma;g&comma;x&comma;m&comma;q&colon;

> 

r,m,q

4,4,8⁢x

(3)
> 

r≔sprem⁡f&comma;g&comma;x&comma;m&comma;q&colon;

> 

r,m,q

1,1,2⁢x

(4)

See Also

Prem

quo

rem

Sprem