Calculating the n th roots of a complex number, Keystrokes display – HP 15c User Manual

Page 67

Advertising
background image

Section 3: Calculating in Complex Mode

67

Calculating the nth 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

1/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

Program mode.

´ CLEARM

000-

´bA

001-42,21,11

®

002- 34

Places n in X-register, z in Y-
register.

003- 15

Calculates 1/n.

| K

004- 43 36

Retrieves n.

)

005- 33

|F8

006-43, 4, 8

Activates Complex mode.

Y

007- 14

Calculates z

1 / n

.

O2

008- 44 2

Stores real part of z

0

in R

2

.

´}

009- 42 30

O3

010- 44 3

Stores imaginary part of z

0

in

R

3

.

3

011- 3

6

012- 6

0

013- 0

|(

014- 43 33

÷

015- 10

Calculates 360/n.

O4

016- 44 4

Stores 360/n in R

4

.

0

017- 0

OV

018- 44 25

Stores 0 in Index register.

´b0

019-42,21, 0

l4

020- 45 4

Recalls 360/n.

l*V

021-45,20,25

Calculates 360k/n using Index
register,

´}

022- 42 30

|`

023- 43 35

1

024- 1

Places 1 + i(k360/n) in the X-
register.

| D

025- 43 7

Sets Degrees mode.

´;

026- 42 1

Calculates e

ik360 / n

.

l2

027- 45 2

Recalls real part of z

0

.

l3

028- 45 3

Recalls imaginary part of z

0

.

Advertising