type/undefined
check for an object of type undefined
Calling Sequence
Parameters
Description
Examples
type(x, undefined)
x
-
any expression
The type(x, undefined) function returns true if x is
1. undefined;
2. a floating-point number whose exponent is undefined;
3. a nonreal, where at least one of the arguments satisfies either (1) or (2).
A nonreal is a non-extended_numeric complex constant, where ℜ⁡x (if present) and ℑ⁡x are of type extended_numeric.
A complex extended_numeric object in which one component is of type infinity and the other is of type undefined, is considered to be of both types infinity and undefined. In most computations, however, such an object is considered to be an infinity first, and an undefined second. See the example involving x below.
type⁡undefined,undefined
true
type⁡I⁢undefined,undefined
type⁡3⁢undefined,undefined
type⁡a⁢undefined,undefined
false
type⁡−undefined+2⁢I,undefined
x := Float(infinity + undefined*I);
x≔Float⁡∞+Float⁡undefined⁢I
abs⁡x
Float⁡∞
1x
0.+0.⁢I
y≔∞−∞
y≔undefined
type⁡y,And⁡undefined,extended_rational
See Also
Im
Re
type
type/constant
type/extended_numeric
type/nonreal
undefined
Download Help Document