type/algnum - check for an algebraic number
|
Calling Sequence
|
|
type(expr, algnum)
|
|
Description
|
|
•
|
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.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
Note: is not of type algnum, but if written in the form RootOf(z^2-2, z) it is of type algnum.
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
|
|
Download Help Document
Was this information helpful?