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+Ib where a and b are floating-point numbers.
type4,complexcons
true
type2+I,complexcons
type3.5,complexcons
typelnπ+I,complexcons
type∞,complexcons
typeg2,complexcons
false
typeFAIL,complexcons
typex2,complexcons
See Also
complex
evalf
type
type/complex
type/constant
type/infinity
type/name
type/realcons
Download Help Document