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

Online Help

All Products    Maple    MapleSim


type/radalgnum

check for an algebraic number in radical or RootOf notation

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(expr, radalgnum)

Parameters

expr

-

any expression

Description

• 

The call type(expr, radalgnum) checks if expr is an algebraic number in RootOf or radical notation.

• 

An algebraic number is defined as either a rational number, a root of a univariate polynomial with algebraic number coefficients, specified by a RootOf, or an n-th root of an algebraic number. A sum, product, or quotient of these is also an algebraic number.

• 

For example, both 2  and RootOf(z^2-2, z) are of type radalgnum.

Examples

> 

type⁡23,radalgnum

true

(1)
> 

type⁡RootOf⁡z2+1,z,radalgnum

true

(2)
> 

r1≔RootOf⁡_Z5+_Z+212

r1≔RootOf⁡_Z5+_Z+2

(3)
> 

type⁡r1,radalgnum

true

(4)
> 

type⁡r1,algnum

false

(5)
> 

r2≔2+RootOf⁡_Z5+_Z+323

r2≔2+RootOf⁡_Z5+_Z+323

(6)
> 

type⁡r2,radalgnum

true

(7)
> 

type⁡r2,radnum

false

(8)
> 

type⁡RootOf⁡_Z12+2,radalgnum

false

(9)
> 

type⁡ln⁡2,radalgnum

false

(10)
> 

type⁡5RootOf⁡z2−2,z,radalgnum

true

(11)
> 

type⁡RootOf⁡z2+y,z,radalgnum

false

(12)

See Also

convert/radical

convert/RootOf

type

type/algext

type/algnum

type/radalgfun

type/radext

type/radnum