type/imaginary
check for an object of type imaginary
Calling Sequence
Parameters
Description
Examples
type(x, imaginary)
type(x, imaginary(d))
x
-
any expression
d
any numeric type
The type(x, imaginary) function returns true if x is a one argument complex constant, where ℑx is of type extended_numeric.
The type(x, imaginary(d)) function returns true if x is of type imaginary and ℑx is type d.
type(x, imaginary(d)) returns false if d is not a numeric type.
type5I,imaginary
true
type2,imaginary
false
type2+5I,imaginary
typex,imaginary
type32I,imaginaryrational
typebI,imaginaryname
type2.I,imaginaryfloat
See Also
complex
Im
type
type/complexcons
type/constant
type/numeric
Download Help Document