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

Online Help

All Products    Maple    MapleSim


type/algnum

check for an algebraic number

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(expr, algnum)

Parameters

expr

-

any expression

Description

• 

The call type(expr, algnum) checks whether expr is an algebraic number.

• 

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

Examples

type23,algnum

true

(1)

typeln2,algnum

false

(2)

typeRootOfz2+1,z,algnum

true

(3)

Note: 2 is not of type algnum, but if written in the form RootOf(z^2-2, z) it is of type algnum.

type212,algnum

false

(4)

type5RootOfz22,z,algnum

true

(5)

typeRootOfz2+y,z,algnum

false

(6)

See Also

convert/radical

convert/RootOf

type

type/algnumext

type/radalgnum

type/radnum