IMAGReturns the imaginary part of a complex number.
Description:
The imaginary part of a complex number is returned with IMAG and the real part with REAL. To express the parts of a complex number in polar form, use ABS and ARG:
PRINT "Rectangular form: Real = ";REAL(Z),"Imag =";IMAG(Z)
PRINT "Polar form: Magnitude = ";ABS(Z),"Angle = ";ARG(Z)
See Also:
|