Complex Numbers
Complex number construction and utilities.
abs2
Squared absolute value of a complex number.
abs2(z) → real^2 + imag^2
angle
Phase angle of a complex number.
angle(z) → Angle in radians
cis
Compute cos(x) + i*sin(x).
cis(x) → Unit complex number at angle x
complex
Create a complex number from real and imaginary parts.
complex(real, imag) → Complex number
conj
Complex conjugate.
conj(z) → Conjugate (real - imag*i)
imag
Imaginary part of a complex number.
imag(z) → Imaginary part
isreal
Test if a complex number has zero imaginary part.
isreal(z) → true if imag(z) == 0
real
Real part of a complex number.
real(z) → Real part