# Calculating The /?th Roots Of A Complex Number - HP -15C Advanced Functions Handbook

78
Section 3: Calculating in Complex Mode
Keystrokes
7 | ENTER 14 IT] |T|
2[f][DJ
Display
7.0000
7.0000
Enters 7 + 4z.
Stores number in C using
index 2.
1 [OH]
2.0000
Recalls first number.
2|T][E]
7.0000
Recalls second number.
9.0000
Real part of sum.
7.0000
Imaginary part of sum.
Calculating the /7th Roots of a Complex Number
This program calculates the nth roots of a complex number. The
roots are z
k
for k = 0,1, 2,..., n — 1. You can also use the program to
calculate z
l/r
, where r isn't necessarily an integer. The program
operates the same way except that there may be infinitely many
roots z
k
for k = 0, ±1, ±2,....
Keystrokes
Display
Q/3
[RT1
DDtlEs
000-
001-42
002-
003-
004-
005-
006-43
007-
008-
009-
010-
011-
012-
013-
014-
015-
016-
017-
018-
,21,11
34
15
43 36
33
, 4, 8
14
44
2
42 30
44
3
3
6
0
43 33
10
44
4
0
4425
Program mode.
Places n in X-register, z in
Y-registers.
Calculates l/n.
Retrieves n.
Activiates Complex mode.
Calculates z
l/n
.
Stores real part of Z
Q
in R
2
.
Stores imaginary part of
z
0
in R
3
.
Calculates 3607n.
Stores 360/n in R
4
.
Stores 0 in Index register.