...
Description | Function Name |
---|---|
Real Component | re(c) |
Imaginary Component | im(c) |
Complex Modulus (Absolute Value) | cmod(c) |
Argument (Angle of complex value, in radians) | arg(c) |
Complex conjugate | conj(c) |
Complex, constructs a complex number from real and imaginary parts | complex(x, y) |
Polar, constructs a complex number from modulus and argument | polar(r, theta) |
1 By default functions like sqrt(-1) will return a complex result. These functions have constructors with a flag to control their behaviour for out of range values, if the flag is true, then the function will return Double.NaN for out of range real values. If the flag is false they will return the appropriate complex result.
...