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

Online Help

All Products    Maple    MapleSim


Algebraic

  

Normal

  

normal form for rational expressions with algebraic number coefficients

 

Calling Sequence

Parameters

Options

Description

Examples

Calling Sequence

Normal(p, options)

Parameters

p

-

any Maple object; typically a rational function with algebraic number coefficients

options

-

(optional) equation(s) of the form keyword = value, where keyword is one of 'symbolic', 'expanded', 'rationalize', 'characteristic', 'makeindependent', or 'recursive'.

Options

• 

If the option 'symbolic'=true is given and a RootOf whose minimal polynomial factors nontrivially is detected, Normal will reduce it to a RootOf of lower degree by picking one of the factors arbitrarily. The default is 'symbolic'=false.

• 

If the option 'expanded'=true is given, the result will be a quotient of two expanded polynomials, with the following properties:

– 

The leading coefficient, with respect to the block-lexicographic ordering of the variables described above, of the denominator is a positive integer.

– 

If there is a denominator, it is non-constant.

– 

The integer content of the denominator is equal to 1.

  

This form is unique, but again it may not exist if the radicals and RootOfs in the input do not define a field. The default is 'expanded'=false.

• 

If the option 'rationalize'=false is given, then leading coefficients of non-constant factors in the result will not be rationalized, and the denominator may contain constant factors that are not integers. This can be useful to avoid blowup in some examples where coefficients or denominators in the input contain many algebraic numbers.

• 

If the option 'characteristic'=p is given, where p is a nonnegative integer, the normal form is computed over an extension of the ring p of integers modulo p. The default is 'characteristic'=0 and means that the normal form is computed over an extension of the rational numbers.

• 

Note that if p is positive but not a prime, then p is not a field, and a normal form may not exist. Normal will attempt to compute one anyway. If it does not succeed because it encounters an integer that has no inverse modulo p, it issues the error "zero divisor modulo p detected".

• 

If the option 'makeindependent'=true is given, then Normal 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.

• 

If the option 'recursive'=false is given, then Normal will not map itself recursively over non-algebraic subexpressions. The default is 'recursive'=true.

Description

• 

The Normal command computes a factored normal form for a (multivariate) rational expression whose coefficients contain radicals or RootOfs representing algebraic numbers. In particular, the result is 0 if and only if the input is mathematically equivalent to zero, under certain conditions (see below).

• 

Non-algebraic subexpressions such as sinx that are neither variables, rational numbers, or algebraic objects will first be mapped over recursively (unless the option 'recursive'=false is given; see below). Then they are frozen and temporarily replaced by new local variables, which are not considered to be constant in what follows.

• 

This command preserves partial factorizations in the input and expands polynomials only if necessary, unless the option 'expanded'=true is given (see below).

• 

The normal form satisfies the following properties:

– 

All radicals and powers of RootOfs in the result are reduced with respect to their respective minimal polynomials.  That is, every radical is of the form ar, where 0<r<1 is a rational number, and every integer exponent in a power of the form RootOff&comma;...n satisfies 0<n<degf .

– 

The numerator and the denominator have no non-trivial common factors.

  

Unless option 'expanded'=true or option 'rationalize'=false is given (see below), the normal form also satisfies the following properties:

– 

The leading coefficients, with respect to a block-lexicographic ordering of the variables where all global variables are considered larger than all local ones, of all non-constant factors are positive integers (except possibly if there is only one non-constant factor and no denominator). If all variables have different names, then this ordering is session-independent.

– 

There is at most one constant factor in the denominator, and it is a positive integer.

– 

There are at most two constant factors in the numerator, at most one of them is not a rational number, and the other one, if present, is an integer.

– 

All factors that are not rational numbers have integer content equal to 1, except possibly if there is only one non-constant factor.

• 

If, after freezing non-algebraic subexpressions, the input contains floating point numbers, only normal will be applied to it.

• 

If the set of radicals and RootOfs in the input cannot be embedded into a field algebraically, a normal form with the properties above may not exist, or Normal may be unable to compute one. It 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 compute the normal form anyway. If it does not succeed, it will first fall back to calling Algebraic[Reduce], and if this fails as well, to normal (unless the option 'symbolic'=true is given; see below). In this case, the result returned may not satisfy all properties of a normal form above.

• 

Otherwise, if the set of radicals and RootOfs in the input do define a field, then Normal returns 0 if and only if the input is mathematically equivalent to zero.

Examples

withAlgebraic&colon;

Introductory examples:

Normalx5+y5x3+y3

x4yx3+y2x2y3x+y4x2yx+y2

(1)

Normal2x2y+x26y3x2Ixy312x+I312y

2yx+x+23y+3Iy+x

(2)

fNormalx+1x+2xRootOf_Z22&comma;index=1+1x22

fRootOf_Z22&comma;index=1x+1x+22xRootOf_Z22&comma;index=1

(3)

GreatestCommonDivisornumerf&comma;denomf

1

(4)

p1xRootOf_Z22+1x+RootOf_Z22

p1xRootOf_Z22+1x+RootOf_Z22

(5)

normalp

2xx+RootOf_Z22x+RootOf_Z22

(6)

normalp&comma;expanded

2xx2+RootOf_Z222

(7)

Normalp&comma;expanded=true

2xx22

(8)

Powers of radicals and RootOfs are reduced and, in particular, constant denominators are inverted. Nested and mixed radicals / RootOfs are handled as well:

pRootOfx2x15+2RootOfx2x13&comma;RootOfx2x11

pRootOf_Z2_Z15+2RootOf_Z2_Z13&comma;1RootOf_Z2_Z1

(9)

Normalp

9RootOf_Z2_Z1+5&comma;RootOf_Z2_Z11

(10)

Normal1+sqrt254

1+214+1+2142

(11)

NormalRootOfx2x+RootOfx222

RootOf_Z2_Z+RootOf_Z22RootOf_Z22

(12)

Normal1RootOfx2sqrt3

3RootOf_Z233

(13)

Algebraic functions in the coefficients are not accepted:

Normalx2yx2+2sqrtyx+y

Error, (in Algebraic:-Normal) ratpoly(s) with radalgnum coefficients expected

Non-algebraic subexpressions are first handled recursively (unless option 'recursive'=false is present) and then temporarily replaced by new variables:

Normalfoo1RootOf_Z2+1x23x+sqrt3

fooRootOf_Z2+1x3

(14)

Normalfoo1RootOf_Z2+1x23x+sqrt3&comma;recursive=false

foo1RootOf_Z2+1x3

(15)

Non-algebraic subexpressions may evaluate to something algebraic after recursive treatment:

Normalx+cosI+RootOf_Z2+1&comma;index=2x21

1x1

(16)

Partial factorizations in the inputs are preserved, unless option 'expanded'=true is given:

ax21x22

ax21x22

(17)

bx2+2x+1xsqrt22

bx2+2x+1x22

(18)

Normalab

x1x+2x+1x2

(19)

Normalexpandaexpandb

x2+x2x2x2x2+x2

(20)

Normalab&comma;expanded=true

x2+x2x2x2x2+x2

(21)

By default, leading coefficients are rationalized and made positive. Note that this may factor out a leading term, even if the input is expanded:

Normalsqrt2x+2

2x+2

(22)

Since Maple always expands the product of a number and a single factor, the leading coefficient may not be positive and the integer content may be nontrivial in such a case:

restart&colon;

withAlgebraic&colon;

Normalx226x+9xsqrt2

3x+22x3

(23)

Normalx226x+9xsqrt22x3

3x32

(24)

If option 'rationalize'=false is given, then leading coefficients and denominators will not be rationalized in the output:

Normalxsqrt2y+sqrt3z1+sqrt2

22x32z+2y2

(25)

Normalxsqrt2y+sqrt3z1+sqrt2&comma;rationalize=false

x2y+3z1+2

(26)

If the input has floating point coefficients, only normal is applied to it:

Normal2.5x22x+1xsqrt2x21

2.5x22x1x+2

(27)

There is no way for Normal to know whether RootOf_Z22 without an index represents 2 or 2, and it reverts to calling Algebraic[Reduce] or normal. In the following example, option 'symbolic'=true picks 2:

Normalx32xxRootOf_Z22&comma;index=1x2+sqrt2x

1

(28)

Normalx32xxRootOf_Z22x2+sqrt2x

x22x+RootOf_Z22x+2

(29)

Normalx32xxRootOf_Z22x2+sqrt2x&comma;symbolic=true

x2x+2

(30)

In the following example, there is a zero divisor in the denominator, and the result does not satisfy all properties of a normal form:

Normalx2+2sqrt3x+3x+sqrt3RootOf_Z2_Z2

x2+23x+3RootOf_Z2_Zx+3

(31)

Normalx2+2sqrt3x+3x+sqrt3RootOf_Z2_Z2&comma;symbolic=true

x+3

(32)

If there is a RootOf whose leading coefficient is not invertible, then it is not even possible to reduce a positive power of it:

NormalRootOfRootOf_Z2_Z_Z212

RootOfRootOf_Z2_Z_Z212

(33)

NormalRootOfRootOf_Z2_Z_Z212&comma;symbolic=true

1

(34)

An example where the normal form can be computed even though there is a non-indexed reducible RootOf:

Normalx21x2+2RootOf_Z21x+1

xRootOf_Z21x+RootOf_Z21

(35)

Normalx21x2+2RootOf_Z21&comma;index=2x+1

x+1x1

(36)

Using option 'characteristic', normal forms over finite fields can be computed:

Normalx2+1x2+x&comma;characteristic=2

x+1x

(37)

Normalx26x2+2Ix1

x26x2+2Ix1

(38)

Normalx26x2+2Ix1&comma;characteristic=7

x+6Ix+I

(39)

In contrast to characteristic 0, the complex number I, radicals, and indexed RootOfs are not uniquely defined in positive characteristic, and they are treated as if they were non-indexed RootOfs:

Normalx2xI&comma;characteristic=5

x+3x+4I

(40)

Normalx2xI&comma;characteristic=5&comma;symbolic=true

x+3x+2

(41)

The polynomial defining a RootOf will also be reduced modulo the characteristic:

NormalRootOf_Z23&comma;characteristic=7

RootOf_Z2+4

(42)

The normal form cannot always be computed in composite characteristic:

Normalx2+1x2+9x+8&comma;characteristic=65

x+57x+1

(43)

Normalx2+1x24&comma;characteristic=65

Error, (in Algebraic:-Normal) zero divisor modulo 65 detected

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

(44)

CubeRootOf2RootOf_Z3+2&comma;index=1

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

(45)

CubeRootOf2RootOf_Z32&comma;index=1

CubeRootOf2RootOf_Z32&comma;index=1

(46)

CubeRootOf3RootOf_Z33&comma;index=1

CubeRootOf3RootOf_Z33&comma;index=1

(47)

CubeRootOf4RootOf_Z34&comma;index=1

CubeRootOf4RootOf_Z34&comma;index=1

(48)

CubeRootOf6RootOf_Z36&comma;index=1

CubeRootOf6RootOf_Z36&comma;index=1

(49)

NormalCubeRootOf4CubeRootOf2CubeRootOf3CubeRootOf4CubeRootOf6

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

(50)

NormalCubeRootOf4CubeRootOf2CubeRootOf3CubeRootOf4CubeRootOf6&comma;makeindependent=true

0

(51)

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

NormalCubeRootOf2CubeRootOf3CubeRootOf6&comma;makeindependent=false

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

(52)

See Also

Algebraic

Algebraic[GreatestCommonDivisor]

Algebraic[Reduce]

evala,Normal

radnormal