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) .
type23,algnumext
false
typeRootOfz2+1,z,algnumext
true
typeRootOfz2+y,z,algnumext
typeRootOfz2−RootOfx2−5,z,algnumext
See Also
convert/RootOf
RootOf
type
type/algnum
type/radnumext
type/RootOf
Download Help Document