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.
type⁡23,radalgnum
true
type⁡RootOf⁡z2+1,z,radalgnum
r1≔RootOf⁡_Z5+_Z+212
r1≔RootOf⁡_Z5+_Z+2
type⁡r1,radalgnum
type⁡r1,algnum
false
r2≔2+RootOf⁡_Z5+_Z+323
type⁡r2,radalgnum
type⁡r2,radnum
type⁡RootOf⁡_Z12+2,radalgnum
type⁡ln⁡2,radalgnum
type⁡5RootOf⁡z2−2,z,radalgnum
type⁡RootOf⁡z2+y,z,radalgnum
See Also
convert/radical
convert/RootOf
type
type/algext
type/algnum
type/radalgfun
type/radext
type/radnum
Download Help Document