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

inert pseudo-remainder function

Sprem

inert sparse pseudo-remainder function

 

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 Prem and Sprem functions are placeholders for the pseudo-remainder and sparse pseudo-remainder of a divided by b where a and b are polynomials in the variable x. They are used in conjunction with either mod or evala which define the coefficient domain, as described below.

• 

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. When Sprem can be used it is preferred because it is more efficient.

• 

The calls  Prem(a, b, x, 'm', 'q') mod p and Sprem(a, b, x, 'm', 'q') mod p compute the pseudo-remainder and sparse pseudo-remainder respectively of a divided  by b modulo p, a prime integer. The coefficients of a and b must be multivariate polynomials over the rationals or coefficients over a finite field specified by RootOf expressions.

• 

The calls evala(Prem(a, b, x, 'm', 'q')) and evala(Sprem(a, b, x, 'm', 'q')) compute the pseudo-remainder and sparse pseudo-remainder respectively of a and b, where the coefficients of a and b are multivariate polynomials with coefficients in an algebraic number (or function) field.

Examples

Prem uses a power of the leading coefficient to the degree difference for the multiplier

> 

Prem⁡x10−1&comma;y⁢x2−1&comma;x&comma;mmod13

12⁢y9+y4

(1)
> 

m

y9

(2)

Sprem uses a smaller power of the leading coefficient for the multiplier

> 

Sprem⁡x10−1&comma;y⁢x2−1&comma;x&comma;m&comma;qmod13

12⁢y5+1

(3)
> 

m

y5

(4)
> 

q

x8⁢y4+x6⁢y3+x4⁢y2+y⁢x2+1

(5)

See Also

evala

mod

prem

Rem

RootOf

sprem