Back to Complex Numbers
isreal
Test if a complex number has zero imaginary part.
Syntax
isreal(z) → true if imag(z) == 0
Backends
TypeScript
Description
Test if a complex number has zero imaginary part.
Parameters
| Name | Description |
|---|---|
| z | Complex number |
Returns
true if imag(z) == 0