type/nonreal
check for an object of type nonreal
Calling Sequence
Parameters
Description
Examples
type(x, nonreal)
type(x, nonreal(d))
x
-
expression
d
numeric type
The type(x, nonreal) function returns true if x is of the form a+Ib, where b <> 0 and a (if present) and b are of type extended_numeric.
The type(x, nonreal(d)) function returns true if d is a numeric type, and x is of the form a+Ib, where b <> 0 and a (if present) and b are of type d.
type5I,nonreal
true
type3,nonreal
false
type4.−0.I,nonreal
typex,nonreal
type12+3I,nonrealrational
typea+Ib,nonrealname
type1.+2.I,nonrealfloat
See Also
complex
evalc
Im
Re
type
type/complexcons
type/constant
type/embedded_real
type/extended_numeric
type/numeric
Download Help Document