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.
Note: is not of type algnum, but if written in the form RootOf(z^2-2, z) it is of type algnum.
See Also
convert/radical
convert/RootOf
type
type/algnumext
type/radalgnum
type/radnum
Download Help Document