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+I⁢b, 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+I⁢b, where b <> 0 and a (if present) and b are of type d.
type⁡5⁢I,nonreal
true
type⁡3,nonreal
false
type⁡4.−0.⁢I,nonreal
type⁡x,nonreal
type⁡12+3⁢I,nonreal⁡rational
type⁡a+I⁢b,nonreal⁡name
type⁡1.+2.⁢I,nonreal⁡float
See Also
complex
evalc
Im
Re
type
type/complexcons
type/constant
type/embedded_real
type/extended_numeric
type/numeric
Download Help Document