Math::Complex
Last update: 17.07.2025Type and operations on complex numbers.
| Operator Name | Description |
|---|---|
| Add | Adds two complex numbers. |
| Arg | Returns the argument of the operand. |
| Conj | Returns the conjugate complex of the operand. |
| Div | Divides two complex numbers. |
| EQ | Returns whether two complex numbers are equal. |
| FromNum | Returns a complex number from real and imaginary values. |
| FromPolar | Returns a complex number from radial and angular coordinates. |
| Im | Returns the imaginary part of a complex number. |
| IsImaginary | Returns whether the real part of a complex number is zero. |
| IsReal | Returns whether the imaginary part of a complex number is zero. |
| Mod | Returns the modulus, or absolute value or magnitude, of the operand. |
| Mul | Multiplies two complex numbers. |
| NE | Returns whether two complex numbers are not equal. |
| Neg | Return the negative complex of the operand. |
| Re | Return the real part of a complex number. |
| Rec | Return the reciprocal of the operand. |
| Sqr | Multiply a complex number by itself. |
| SqrMod | Return the square of the modulus, or absolute value or magnitude, of the operand. |
| Sub | Subtract two complex numbers. |
| ToNum | Return the real and imaginary parts of a complex number. |
| ToPolar | Return the modulus and argument of a complex number. |
Parent topic:Libraries