type/algnumext
check for an algebraic number extension
Calling Sequence
Parameters
Description
Examples
type(expr, algnumext)
expr
-
any expression
The call type(expr, algnumext) checks to see if expr is an algebraic number extension.
An algebraic number extension is a root of a univariate polynomial with algebraic number coefficients, specified by a RootOf.
For example, the algebraic number 2 could be specified as RootOf(z^2-2, z).
The expression type(expr, algnumext) is equivalent to the expression: type(expr, RootOf) and type(expr, algnum) .
type⁡23,algnumext
false
type⁡RootOf⁡z2+1,z,algnumext
true
type⁡RootOf⁡z2+y,z,algnumext
type⁡RootOf⁡z2−RootOf⁡x2−5,z,algnumext
See Also
convert/RootOf
RootOf
type
type/algnum
type/radnumext
type/RootOf
Download Help Document