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

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : type/realalgnum

type/realalgnum

check for an object of type realalgnum (real algebraic number)

 

Calling Sequence

Parameters

Description

Subtypes

Supertypes

Examples

Calling Sequence

type(x, realalgnum)

Parameters

x

-

any expression

Description

• 

The type realalgnum forms a representation of real algebraic numbers.

• 

The type( x, 'realalgnum' ) function returns true if one of the following holds:

– 

x is rational,

– 

x is of the form RootOf( p, c .. d ) where c≤d are rational numbers isolating a root of p, and p is a non-linear univariate polynomial in _Z with coefficients of type realalgnum, or

– 

x is a sum, product, or quotient of expressions of type realalgnum.

• 

The type realalgnum is defined and used in the RootFinding and QuantifierElimination packages.

Subtypes

• 

type/rational

Supertypes

• 

type/algnum

Examples

> 

with⁡RootFinding:

> 

type⁡12,realalgnum

true

(1)
> 

type⁡RootOf⁡_Z2−2,1..2,realalgnum

true

(2)
> 

type⁡RootOf⁡_Z2−5⁢RootOf⁡_Z3−9,2..3,3..4,realalgnum

true

(3)
> 

type⁡RootOf⁡_Z2−2,1..2RootOf⁡_Z2−3,1..2,realalgnum

true

(4)
> 

type⁡RootOf⁡_Z2−2,1..2+RootOf⁡_Z2−3,1..2⁢RootOf⁡_Z3−2,1..2,realalgnum

true

(5)
> 

type⁡1.34,realalgnum

false

(6)
> 

type⁡∞,realalgnum

false

(7)
> 

type⁡1+I,realalgnum

false

(8)
> 

type⁡x,realalgnum

false

(9)

The only RootOf selector accepted is a range of rational numbers:

> 

type⁡RootOf⁡_Z2−2,realalgnum

false

(10)
> 

type⁡RootOf⁡_Z2−y,index=real1,realalgnum

false

(11)
> 

type⁡RootOf⁡_Z2−2,2,realalgnum

false

(12)
> 

type⁡RootOf⁡_Z2−2,index=1,realalgnum

false

(13)
> 

type⁡RootOf⁡_Z2−2,1.1..2.3,realalgnum

false

(14)

Non-rational (sub-)expressions are not accepted:

> 

type⁡RootOf⁡_Z23−2,1..2,realalgnum

false

(15)
> 

type⁡RootOf⁡_Z2−2,1..213,realalgnum

false

(16)

See Also

QuantifierElimination[PartialCylindricalAlgebraicDecompose]

QuantifierElimination[QuantifierEliminate]

RootFinding[EvaluateAtRoot]

RootFinding[RefineRoot]

RootOf