type/radalgnum
check for an algebraic number in radical or RootOf notation
Calling Sequence
Parameters
Description
Examples
type(expr, radalgnum)
expr
-
any expression
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.
type23,radalgnum
true
typeRootOfz2+1,z,radalgnum
r1≔RootOf_Z5+_Z+212
r1≔RootOf_Z5+_Z+2
typer1,radalgnum
typer1,algnum
false
r2≔2+RootOf_Z5+_Z+323
typer2,radalgnum
typer2,radnum
typeRootOf_Z12+2,radalgnum
typeln2,radalgnum
type5RootOfz2−2,z,radalgnum
typeRootOfz2+y,z,radalgnum
See Also
convert/radical
convert/RootOf
type
type/algext
type/algnum
type/radalgfun
type/radext
type/radnum
Download Help Document