type/complex - check for an object of type complex
|
Calling Sequence
|
|
type(x, complex)
type(x, complex(d))
|
|
Parameters
|
|
x
|
-
|
any expression
|
d
|
-
|
any type
|
|
|
|
|
Description
|
|
•
|
The type(x, complex) function returns true if x is an expression of the form , where a (if present) and b (if present) are finite and of type realcons.
|
•
|
The type(x, complex(d)) function returns true if or (if present) and (if present) are both of type d.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
|
|
Download Help Document
Was this information helpful?