Function: type/cmplx - checks for a complex value that is not a real value
Calling Sequence:
type(n, cmplx);
Parameters:
n - any expression
Description:
The call type(n, elemental) checks whether the imaginary part of the numeric constant n does not equal 0 (thus whether n is element of C \ IR); if so, it returns true, and false otherwise.
This type is part of the math package and automatically initialized when this package is loaded.
Examples:
> with(math):
> type(sqrt(2), cmplx);
> type(sqrt(-1), cmplx);
> type(x, cmplx);
See Also:
type , type/real , type/irrational .
Version History:
Version 1.0 as of December 30, 1997
Version 2.0 as of January 06, 1999