132 Section 11: Calculating With Complex Numbers

Conditional Tests

For programming, the four conditional tests below will work in the complex sense: ~ and T 0 compare the complex number in the (real and imaginary) X-registers to 0 + 0i, while T 5 and T 6 compare the complex numbers in the (real and imaginary) X- and Y-registers. All other conditional tests besides those listed below ignore the imaginary stack.

~T0 (x ≠ 0) T5 (x = y) T6 (x ≠ y)

Example: Complex Arithmetic. The characteristic impedance of a ladder network is given by an equation of the form

Z 0 = BA ,

where A and B are complex numbers. Find Z0 for the hypothetical values A = 1.2 + 4.7i and B = 2.7 + 3.2i.

KeystrokesDisplay

1.2 v4.7 ´V

1.2000

2.7 v3.2 ´V

2.7000

÷

1.0428

¤

1.0491

´% (hold)0.2406

(release)1.0491

Enters A into real and imaginary X-registers.

Enters B into real and imaginary X-registers, moving A into real and imaginary Y-registers.

Calculates A/B.

Calculates Z0 and displays real part.

Displays imaginary part of Z0 while %is held down.

Again displays real part of Z0.