RPN Advanced 42 manual · Chapter 9 of 18
Complex numbers
Build, split and calculate with complex numbers in rectangular or polar form.
9.1Make a complex number#
Shift STO (COMPLEX) combines Y and X into one complex number: Y is the first part and X the second. A complex number takes one stack level. In rectangular form (REC) the parts are real and imaginary; in polar form (POL) they are radius and angle.
Make 3 + 4i
Type 3, ENTER, 4, then shift STO.
3ENTER4⇧COMPLEXSTO

3.0000 i4.0000Split a complex number back into two reals
Press shift STO again on a complex X.
3ENTER4⇧COMPLEXSTO⇧COMPLEXSTO

y: 3.0000 x: 4.00009.2Add, multiply and divide complex numbers#
Add (1+2i) and (3+4i)
Make each number, then add.
1ENTER2⇧COMPLEXSTO3ENTER4⇧COMPLEXSTO+

4.0000 i6.0000Multiply (1+2i) by (3+4i)
Make each number, then multiply.
1ENTER2⇧COMPLEXSTO3ENTER4⇧COMPLEXSTO×

-5.0000 i10.0000Divide (1+2i) by (3+4i)
Make each number, then divide.
1ENTER2⇧COMPLEXSTO3ENTER4⇧COMPLEXSTO÷

0.4400 i0.0800Reciprocal of 1+2i
Press 1/x.
1ENTER2⇧COMPLEXSTO1/x

0.2000 -i0.4000Change the sign
Press +/−.
1ENTER2⇧COMPLEXSTO+/−

-1.0000 -i2.00009.3Functions of complex numbers#
Square root, square, power, logarithm, exponential and the trigonometric functions all accept complex values. Absolute value (ABS in CONVERT page 2) gives the magnitude.
Square root of 1+2i
Make the number and press the square-root key.
1ENTER2⇧COMPLEXSTO√x

1.2720 i0.7862Square of i
Make 0 + 1i and square it.
0ENTER1⇧COMPLEXSTO⇧x²√x

-1.0000Euler: e to the power i
Make i and press shift LN (e to the power x).
0ENTER1⇧COMPLEXSTO⇧eˣLN

0.5403 i0.8415Magnitude of 3+4i
Make the number, open CONVERT page 2 and press ABS.
3ENTER4⇧COMPLEXSTO⇧CONVERT5▼LOG

5.0000Complex sine
Sine of 1+i.
1ENTER1⇧COMPLEXSTOSIN

1.2985 i0.6350The inverse functions ASIN, ACOS and ATAN (shift SIN, COS, TAN) and the hyperbolic functions (run by name, see Functions) accept complex numbers too. They return the principal value, and a complex result is always in radians, whatever the angle mode.
Inverse sine of 1+i
Make 1 + 1i and press shift SIN.
1ENTER1⇧COMPLEXSTO⇧ASINSIN

0.6662 i1.0613Inverse tangent of 2i
Make 0 + 2i and press shift TAN.
0ENTER2⇧COMPLEXSTO⇧ATANTAN

1.5708 i0.5493Hyperbolic sine of i
Make 0 + 1i and run SINH by name: it equals i times sin 1.
0ENTER1⇧COMPLEXSTOXEQ⇧ALPHAENTERLN1/x1/xLOGLOGΣ+1/x√xENTER

0.0000 i0.84159.4Show complex numbers in polar form#
Choose POL in the MODES menu. Complex values then show as radius, an angle sign, and the angle in the current angle unit. The polar annunciator appears. In POL mode shift STO takes the radius from Y and the angle from X.
Convert 3+4i to polar
Make 3 + 4i.
3ENTER4⇧COMPLEXSTOOpen MODES and press POL (sixth key), then close.
⇧MODES+/−XEQEXIT

5.0000 ∠53.1301Enter a number by radius and angle
Switch to POL, then make 2 at 30 degrees.
⇧MODES+/−XEQEXIT2ENTER30⇧COMPLEXSTO

2.0000 ∠30.00009.5Complex or real results#
With RL (real results) a square root or logarithm of a negative real gives Invalid Data. With CPX they return complex answers. If the input is already complex, you always get complex answers.
Complex input always works
Make -4 + 0i and take the square root, even in real-result mode.
4+/−ENTER0⇧COMPLEXSTO√x

0.0000 i2.0000Inverse sine of 2 with complex results
Open MODES, go to page 2 and press CPX, then close the menu.
⇧MODES+/−▼Σ+EXITType 2 and press shift SIN. The arcsine of a number beyond ±1 is complex.
2⇧ASINSIN

1.5708 -i1.3170With CPX the same happens for ACOS beyond ±1, the logarithms and square root of a negative number, ACOSH below 1 and ATANH beyond ±1. On the cuts (real numbers outside the real domain) the imaginary part of the input counts as +0.
HP-42S is a trademark of HP Inc.. Trident Calculator is an independent product by South View Studios and is not affiliated with, sponsored by or endorsed by HP. The name is used only to describe the kind of calculator this model resembles; Trident's names, keys, display, fonts and software are its own clean-room design.