PseudoDivision - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Algebraic

  

PseudoDivision

  

pseudo-division of polynomials with algebraic number coefficients

 

Calling Sequence

Parameters

Options

Description

Examples

Calling Sequence

PseudoDivision(a, b, x, options)

PseudoDivision(a, b, x, `m`, `q`, options)

Parameters

a,b

-

multivariate polynomials in x with algebraic number coefficients

x

-

name

m,q

-

(optional) unevaluated names

options

-

(optional) equation(s) of the form keyword = value, where keyword is either 'symbolic', 'makeindependent', or 'characteristic'

Options

• 

If the option 'symbolic' = true is given and a RootOf whose minimal polynomial factors nontrivially is detected, then it will be reduced to a RootOf of lower degree by picking one of the factors arbitrarily. This will eliminate the possibility of a "reducible RootOf detected" error. The default is 'symbolic'=false.

• 

If the option 'characteristic' = p is given, where p is a non-negative integer, the pseudo-division is performed over an extension of the ring p of integers modulo p. The default is 'characteristic'=0 and means that the pseudo-division is performed over an extension of the rational numbers.

• 

If the option 'makeindependent'=true is given, then PseudoDivision will always try to find a field representation for algebraic numbers in the input, regardless of how many algebraic objects the input contains. If the input contains many RootOfs, then this can be a very expensive calculation. If 'makeindependent'=false is given, then no independence checking is performed. The default is 'makeindependent'=FAIL, in which case algebraic dependencies will only be checked for if there are 4 or fewer algebraic objects in the input.

Description

• 

The PseudoDivision command performs pseudo-division on multivariate polynomials a and b with respect to the variable x. It returns the pseudo-remainder r such that the relationship ma=bq+r is satisfied, where m is the multiplier and q is the pseudo-quotient. r and q are polynomials in x, with degree(r,x) < degree(b,x). The multiplier m is defined as lcoeff(b, x) ^ (degree(a, x)-degree(b, x)+1) and is free of x.

• 

If the optional arguments `m` and `q` are included, they will be assigned the values of the multiplier and pseudo-quotient respectively.

• 

The inputs a and b may contain algebraic number coefficients. These may be represented by radicals or with the RootOf notation (see type,algnum, type,radnum). In general, algebraic numbers will be returned in the same representation as they were received in. Nested radicals and RootOfs are also supported.

• 

The property ma=bq+r will hold in the domain K[x], where K is an algebraic field generated over the rationals and any algebraic number coefficients occurring in a and b (unless the option 'characteristic' is given; see below).

• 

Non-algebraic sub-expressions such as sinx that are neither variables, rational numbers, or algebraic objects are frozen and temporarily replaced by new local variables, which are not considered to be constant in what follows.

• 

The arguments a and b must be polynomials in the variable x, but may contain other names, which are considered as elements of the coefficient field.

• 

The x parameter can also be a function such as sinx, in which case it will be frozen and treated as a variable. However, functions that are also of type AlgebraicObject such as sinπ3 will be converted to algebraic numbers before proceeding, so they cannot be treated as variables. Proceed with caution when using a function for x, as treating some functions as variables may produce mathematically unsound results.

• 

The inputs a and b can be polynomials disguised as rational functions, in which case they are normalized first using Algebraic[Normal].

• 

The output will be normalized as follows:

– 

All non-constant factors are monic with respect to x.

– 

There are at most two constant factors, and at most one of them is not a rational number.

– 

All algebraic numbers occurring in the result are reduced modulo their minimal polynomial (see Reduce), and all arguments of functions, if any, are normalized recursively (see Normal).

• 

If the set of radicals and RootOfs in the input cannot be embedded into a field algebraically, then PseudoDivision may not be able to perform the division. PseudoDivision will try to find a field representation if there are at most 4 algebraic objects in the input (unless option 'makeindependent' is given; see below), and otherwise attempt to proceed anyway. If unsuccessful, a "reducible RootOf detected" error will be returned. (unless the option 'symbolic'=true is given; see below).

• 

This function does not support input containing floats or radical functions such as x.

Examples

withAlgebraic&colon;

Introductory examples:

PseudoDivisionx2+2&comma;2x+sqrt2&comma;x&comma;m1&comma;q1

10

(1)

m1&comma;q1

4&comma;2x2

(2)

expand4x2+22x+sqrt22xsqrt2

10

(3)

PseudoDivisionx3+y3+5&comma;Ix+Iy&comma;x&comma;m2&comma;q2&comma;m2&comma;q2

5I&comma;−I&comma;x2+yxy2

(4)

r1RootOf_Z2_Z1

r1RootOf_Z2_Z1

(5)

PseudoDivisionx2+1&comma;r1x&comma;x&comma;m3&comma;q3&comma;m3&comma;q3

RootOf_Z2_Z1+1&comma;RootOf_Z2_Z1+1&comma;RootOf_Z2_Z1x

(6)

The input may contain both radicals and RootOfs, and PseudoDivision will embed the coefficients into an algebraic field, if possible:

PseudoDivisionxyz&comma;sqrt2xRootOf_Z28&comma;index=1&comma;x&comma;m4&comma;q4&comma;m4&comma;q4

22zy&comma;2&comma;zy

(7)

PseudoDivisionsqrt2x&comma;sqrt3xsqrt6&comma;x&comma;m5&comma;q5&comma;m5&comma;q5

23&comma;3&comma;2

(8)

Nested and mixed radicals and RootOfs are handled as well:

PseudoDivisionx2423+1&comma;2x+RootOf_Z32&comma;index=1&comma;x&comma;m6&comma;q6&comma;m6&comma;q6

4&comma;4&comma;2x213

(9)

PseudoDivisionsqrtRootOf_Z23&comma;index=1x&comma;RootOf_Z2RootOf_Z23&comma;index=1&comma;index=1&comma;x&comma;m7&comma;q7&comma;m7&comma;q7

0&comma;3&comma;3x

(10)

Multivariate input is accepted, but pseudo-division will only be performed on the input with respect to the single variable given in the x parameter, with all other names being considered as elements of the coefficient field:

PseudoDivisionx2y2+7&comma;xy&comma;x&comma;m8&comma;q8&comma;m8&comma;q8

7y2&comma;y2&comma;y3x

(11)

PseudoDivisionx2y2+7&comma;xy&comma;y&comma;m9&comma;q9&comma;m9&comma;q9

7x2&comma;x2&comma;x3y

(12)

PseudoDivisionx2y2+7&comma;xy&comma;z&comma;m10&comma;q10&comma;m10&comma;q10

0&comma;xy&comma;x2y2+7

(13)

If the degree of a is less than the degree of b, then the multiplier will be 1 and the pseudo-quotient will be 0:

PseudoDivisionx2&comma;x3&comma;x&comma;m11&comma;q11&comma;m11&comma;q11

x2&comma;1&comma;0

(14)

If b is a non-zero constant, the pseudo-remainder will always be zero:

PseudoDivisionx10&comma;sqrt2&comma;x&comma;m11&comma;q11&comma;m11&comma;q11

0&comma;322&comma;32x10

(15)

The output will always be fully reduced and normalized:

PseudoDivisionx2&comma;RootOf_Z2_Z1&comma;x&comma;m12&comma;q12&comma;m12&comma;q12

0&comma;2RootOf_Z2_Z1+1&comma;x2RootOf_Z2_Z1+x2

(16)

PseudoDivisionxRootOf_Z2+6_Z1+7&comma;2x&comma;x&comma;m13&comma;q13&comma;m13&comma;q13

14&comma;2&comma;RootOf_Z2+6_Z1+6

(17)

Algebraic Objects will be converted to algebraic numbers, if possible:

PseudoDivisionx+sinπ4&comma;sqrt2x+expIπ&comma;x&comma;m14&comma;q14&comma;m14&comma;q14

2&comma;2&comma;1

(18)

Non-algebraic sub-expressions such as sinx will be frozen and temporarily replaced by new local variables:

PseudoDivisionz2+1&comma;zsinx&comma;z&comma;m15&comma;q15&comma;m15&comma;q15

sinx2&comma;sinx2&comma;zsinx

(19)

The x parameter can also be a function, as long as it is not an Algebraic Object:

PseudoDivisionsinx+4&comma;2sinx&comma;sinx&comma;m16&comma;q16&comma;m16&comma;q16

8&comma;2&comma;1

(20)

aπ4

aπ4

(21)

PseudoDivisionsina+4&comma;2sina&comma;sina

Error, invalid input: Algebraic:-PseudoDivision expects its 3rd argument, x, to be of type Or(name,And(function,Not(AlgebraicObject))), but received 1/2*2^(1/2)

Arguments of functions in the input will be recursively normalized:

PseudoDivisiontanx21x+1+expRootOf_Z2_Z13&comma;tanxsinπ2&comma;tanx1&comma;m17&comma;q17&comma;m17&comma;q17

&ExponentialE;2RootOf_Z2_Z1+1&comma;1&comma;1

(22)

Non-algebraic sub-expressions may become algebraic after recursive normalization occurs:

PseudoDivisionsinx21x1x+1π4x&comma;x+1&comma;x&comma;m18&comma;q18&comma;m18&comma;q18

22&comma;1&comma;22

(23)

Rational functions are not accepted:

PseudoDivision1x&comma;1x2&comma;x

Error, (in Algebraic:-PseudoDivision) polynom(s) with radalgnum coefficients expected

Floats are not accepted.

Algebraic functions such as x are not accepted:

PseudoDivisionx2+2xsqrtx+x&comma;x+sqrtx&comma;x

Error, (in Algebraic:-PseudoDivision) polynom(s) with radalgnum coefficients expected

When non-indexed RootOfs are given in the input, the pseudo-division can still be performed and the output expressed in terms of the non-indexed RootOfs:

PseudoDivisionx21+RootOf_Z23&comma;2xRootOf_Z24&comma;x&comma;m19&comma;q19&comma;m19&comma;q19

4RootOf_Z23&comma;4&comma;2x+RootOf_Z24

(24)

PseudoDivisionx+sqrt2&comma;2x+RootOf_Z28&comma;x&comma;m20&comma;q20&comma;m20&comma;q20

RootOf_Z28+22&comma;2&comma;1

(25)

Even if the leading coefficients of the input contain zero divisors, PseudoDivision can still compute the pseudo-remainder, multiplier, and pseudo-quotient in terms of the input such that the identity ma=bq+r is preserved:

PseudoDivisionsqrt2x&comma;RootOf_Z22&comma;index=1x+sqrt2x+1&comma;x&comma;m21&comma;q21&comma;m21&comma;q21

2&comma;22&comma;2

(26)

PseudoDivisionsqrt2x&comma;RootOf_Z22&comma;index=2x+sqrt2x+1&comma;x&comma;m22&comma;q22&comma;m22&comma;q22

0&comma;1&comma;2x

(27)

PseudoDivisionsqrt2x&comma;RootOf_Z22x+sqrt2x+1&comma;x&comma;m23&comma;q23&comma;m23&comma;q23

2&comma;RootOf_Z22+2&comma;2

(28)

Also, if the second argument is a zero divisor, then the computation will be performed anyway and an answer will be returned such that the identity ma=bq+r is preserved:

PseudoDivisionx&comma;sqrt2RootOf_Z22&comma;x&comma;m24&comma;q24&comma;m24&comma;q24

0&comma;22RootOf_Z22+4&comma;2xRootOf_Z22x

(29)

Using option characteristic, pseudo-division can be performed over finite fields:

PseudoDivisionx2+2x+2&comma;2x+1&comma;x&comma;m25&comma;q25&comma;characteristic=0&comma;m25&comma;q25

5&comma;4&comma;2x+3

(30)

PseudoDivisionx2+2x+2&comma;2x+1&comma;x&comma;m26&comma;q26&comma;characteristic=3&comma;m26&comma;q26

2&comma;1&comma;2x

(31)

PseudoDivisionx2&comma;Ixsqrt2&comma;x&comma;m27&comma;q27&comma;characteristic=7&comma;m27&comma;q27

2&comma;6&comma;Ix+2

(32)

If a RootOf with a non-invertible leading coefficient is detected, an error may be returned:

PseudoDivisionx&comma;RootOfRootOf_Z2_Z_Z+1x+1&comma;x

Error, (in Algebraic:-PseudoDivision) reducible RootOf detected. Substitutions are {RootOf(_Z^2-_Z) = 0, RootOf(_Z^2-_Z) = 1}

In the second case, using option 'symbolic'=true will force PseudoDivision to select one of the factors and perform the computation. Here, it makes the substitution RootOfRootOf_Z2_Z_Z+1=−1:

PseudoDivisionx&comma;RootOfRootOf_Z2_Z_Z+1x+1&comma;x&comma;m29&comma;q29&comma;symbolic=true&comma;m29&comma;q29

−1&comma;−1&comma;1

(33)

With option 'makeindependent'=true, the input will be checked for algebraic dependencies even if there are more than 4 algebraic objects in the input:

CubeRootOf4RootOf_Z3+4&comma;index=1

CubeRootOf−4RootOf_Z3+4&comma;index=1

(34)

CubeRootOf2RootOf_Z3+2&comma;index=1

CubeRootOf−2RootOf_Z3+2&comma;index=1

(35)

CubeRootOf2RootOf_Z32&comma;index=1

CubeRootOf2RootOf_Z32&comma;index=1

(36)

CubeRootOf3RootOf_Z33&comma;index=1

CubeRootOf3RootOf_Z33&comma;index=1

(37)

CubeRootOf4RootOf_Z34&comma;index=1

CubeRootOf4RootOf_Z34&comma;index=1

(38)

CubeRootOf6RootOf_Z36&comma;index=1

CubeRootOf6RootOf_Z36&comma;index=1

(39)

PseudoDivisionx+CubeRootOf4CubeRootOf2CubeRootOf3&comma;x+CubeRootOf4CubeRootOf6&comma;x&comma;m30&comma;q30&comma;m30&comma;q30

RootOf_Z3+2&comma;index=1RootOf_Z33&comma;index=1RootOf_Z34&comma;index=1RootOf_Z3+4&comma;index=1RootOf_Z36&comma;index=1&comma;1&comma;1

(40)

PseudoDivisionx+CubeRootOf4CubeRootOf2CubeRootOf3&comma;x+CubeRootOf4CubeRootOf6&comma;x&comma;m31&comma;q31&comma;makeindependent=true&comma;m31&comma;q31

0&comma;1&comma;1

(41)

With option 'makeindependent'=false, the input will never be checked for algebraic dependencies:

PseudoDivisionx+CubeRootOf2CubeRootOf3&comma;x+CubeRootOf6&comma;x&comma;m32&comma;q32&comma;m32&comma;q32

0&comma;1&comma;1

(42)

PseudoDivisionx+CubeRootOf2CubeRootOf3&comma;x+CubeRootOf6&comma;x&comma;m33&comma;q33&comma;makeindependent=false&comma;m33&comma;q33

RootOf_Z32&comma;index=1RootOf_Z33&comma;index=1RootOf_Z36&comma;index=1&comma;1&comma;1

(43)

See Also

Algebraic

Algebraic[Divide]

Algebraic[Quotient]

Algebraic[Remainder]

Prem

prem