type/complexcons
check for a complex constant
Calling Sequence
Parameters
Description
Examples
type(x, complexcons)
x
-
any expression
The call type(x, complexcons) checks if x is a complex constant. A complex constant is either of type infinity, or an expression (with no indeterminates of type name) for which evalf returns a number of the form a+I⁢b where a and b are floating-point numbers.
type⁡4,complexcons
true
type⁡2+I,complexcons
type⁡3.5,complexcons
type⁡ln⁡π+I,complexcons
type⁡∞,complexcons
type⁡g⁡2,complexcons
false
type⁡FAIL,complexcons
type⁡x2,complexcons
See Also
complex
evalf
type
type/complex
type/constant
type/infinity
type/name
type/realcons
Download Help Document