134 Section 11: Calculating With Complex Numbers
a + ib =
r (cos θ + i sin θ) = re
i
θ
(polar)
r
θ
(phasor)
; and : can be used to interconvert the rectangular and polar forms
of a complex number. They operate in Complex mode as follows:
´ ;
converts the polar (or phasor) form of a complex number
to its rectangular form by replacing the magnitude r
real X-register with a, and replacing the angle θ in the
imaginary X-register with b.
| :
converts the rectangular coordinates of a complex
number to the polar (or phasor) form by replacing the real
part a in the real X-register with r, and replacing the
imaginary part b in the imaginary X-register with θ.
These are the only functions in Complex mode that are affected by the
current trigonometric mode setting. That is, the angular units for θ must
correspond to the trigonometric mode indicated by the annunciator
(or absence thereof).
Re
Im
r
θ
Re
Im
X
a
b
:
;