HP 15c User Manual

Page 81

Advertising
background image

Section 3: Calculating in Complex Mode

81

Example: For the same potential as the previous example, P(z) = 1/z + z, compute the
velocity equipotential line starting at z = 2 + i and proceeding to the left.

First change subroutine "B" so that it returns Re(P(z))—that is, remove the }
instruction from "B". Try n = 6 and h = −0.5. (Notice that h is negative, which specifies that
x

k

will be to the left of x

0

)

Although the keystrokes are not listed here, the results that would be calculated and stored in
matrix A are shown below.

The results show the nature of the top branch of the curve (the heavier dashed line in the
graph for the previous example). Note that the step size h is automatically decreased in order
to follow the curve-rather than stop with an error-when no y-value is found for x < 1.86.

x

k

y

k

2.0000

1.0000

1.8750

0.2363

1.8672

0.1342

1.8452

0.0941

1.8647

0.0844

1.8646

0.0775

Advertising