This is an old revision of the document!
Table of Contents
DM32 Progs
Description
Return Loss & SWR from Complex Impedance
Input Rs and Xs to calculate |z|, |ρ|, VSWR and R.Loss
Complex numbers in DM32
The DM32/HP31Sii handles complex numbers by treating stack-X as Real, stack-Y and Imaginary for one complex number, and stack-Z as Real and stack-T as Imaginary for a second complex number.
This means the normal 4 level stack can hold 2 complex numbers. This is similar to the HP41 Advantage Pack's method.
To store a complex number in a register actually requires two to be used - one for Real part and one for Imaginary part. This is similar to the HP15C/DM15L.
Once the real and imaginary values are on the stack various “Complex” functions are accessed by SHIFTCMPLXFunction for example to add
Z1 = (10 + j20) and Z2 = (30 - j25) = Z3
20 ENTER 10 ENTER 25 CHS ENTER 30
The stack will show
20.0000 10.0000 -25.0000 30.0000
Then carry out the addition
SHIFT CMPLX +
The display will show
20.0000 10.0000 -5.0000 40.0000
X has the real part of Z3 (40) and Y has the imaginary part of Z3 (-5)
Z3 = 40 - j 5
Section Two
— John Pumford-Green 19/07/23 06:08