type/AlgebraicObject
check for an algebraic number or algebraic function
Calling Sequence
Parameters
Description
Examples
type(expr,'AlgebraicObject')
expr
-
expression
An expression is of type AlgebraicObject if and only if it is one of the following:
a radical
a RootOf of type algext
trig⁡π⁢z for some rational number z, where trig is one of the trigonometric functions sin,cos,tan,csc,sec,cot
ⅇI⁢π⁢z for some rational number z
I
ex1≔I,2⁢I,sqrt⁡2,1+sqrt⁡2,x23,x2,RootOf⁡x2−2,index=1,RootOf⁡sin⁡x
ex1≔I,2⁢I,2,1+2,x23,x2,RootOf⁡_Z2−2,index=1,RootOf⁡sin⁡_Z
map⁡type,ex1,AlgebraicObject
true,false,true,false,true,false,true,false
ex2≔exp⁡π11,exp⁡π⁢I11,sin⁡3⁢π11,cosh⁡π11
ex2≔ⅇπ11,ⅇI11⁢π,sin⁡3⁢π11,cosh⁡π11
map⁡type,ex2,AlgebraicObject
false,true,true,false
See Also
Algebraic
Algebraic[GetAlgebraics]
RootOf
trig
type
type/algext
type/algfun
type/algnum
type/radalgfun
type/radalgnum
type/radfun
type/radnum
Download Help Document