type/embedded_real
check for an object of type embedded_real
type/embedded_imaginary
check for an object of type embedded_imaginary
type/embedded_axis
check for an object of type embedded_axis
Calling Sequence
Parameters
Description
Examples
type(x, embedded_real)
type(x, embedded_real(d))
type(x, embedded_imaginary)
type(x, embedded_imaginary(d))
type(x, embedded_axis)
type(x, embedded_axis(d))
x
-
any expression
d
any numeric type
The type(x, embedded_real) function returns true if x is of type complex(extended_numeric) and ℑ⁡x=0.
The type(x, embedded_real(d)) function is the same as type(x, embedded_real) and type(Re(x), d).
The type(x, embedded_imaginary) function returns true if x is of type nonreal and ℜ⁡x=0.
The type(x, embedded_imaginary(d)) function is the same as type(x, embedded_imaginary) and type(Im(x), d).
The type(x, embedded_axis) function returns true if x is either an embedded_real or an embedded_imaginary.
The type(x, embedded_axis(d)) function is the same as type(x, embedded_real(d)) or type(x, embedded_imaginary(d)).
Each of the structured types (where d is given) returns false if d is not a numeric type.
type⁡3,embedded_real
true
type⁡∞,embedded_real
type⁡3.4+0.⁢I,embedded_real⁡float
type⁡3.4+0.⁢I,embedded_real⁡integer
false
type(-0.0 + undefined*I, embedded_imaginary);
type⁡3+∞⁢I,embedded_axis
type⁡a+b⁢I,embedded_axis⁡name
type⁡∞⁢I,embedded_axis
See Also
Im
infinity
Re
type
type/extended_numeric
type/imaginary
type/nonreal
Download Help Document