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.
type⁡5⁢I,imaginary
true
type⁡2,imaginary
false
type⁡2+5⁢I,imaginary
type⁡x,imaginary
type⁡32⁢I,imaginary⁡rational
type⁡b⁢I,imaginary⁡name
type⁡2.⁢I,imaginary⁡float
See Also
complex
Im
type
type/complexcons
type/constant
type/numeric
Download Help Document