type/algnum
check for an algebraic number
Calling Sequence
Parameters
Description
Examples
type(expr, algnum)
expr
-
any expression
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.
type⁡23,algnum
true
type⁡ln⁡2,algnum
false
type⁡RootOf⁡z2+1,z,algnum
Note: 2 is not of type algnum, but if written in the form RootOf(z^2-2, z) it is of type algnum.
type⁡212,algnum
type⁡5RootOf⁡z2−2,z,algnum
type⁡RootOf⁡z2+y,z,algnum
See Also
convert/radical
convert/RootOf
type
type/algnumext
type/radalgnum
type/radnum
Download Help Document