Section
3
Calculating
in
Complex
Mode
Physically important problems involving
real
data
are
often
solved
by
performing relatively simple calculations using complex
numbers.
This
section gives important
insights
into complex
computation
and
shows several examples
of
solving problems
involving complex numbers.
Using Complex
Mode
Complex
mode
in the
HP-15C enables
you to
evaluate complex-
valued expressions simply. Generally,
in
Complex mode
a
mathematical expression
is
entered
in the
same manner
as in the
normal
"real"
mode.
For
example, consider
a
program
that
evaluates
the
polynomial P(x)
—
anxn
+ ... +
aix
+
a0
for the
value
x
in the
X-register.
By
activating
Complex mode,
this
same program
can
evaluate P(z), where
z is
complex. Similarly, other expressions,
such
as the
Gamma function
F(x)
in the
next example,
can be
evaluated
for
complex arguments
in
Complex mode.
Example:
Write
a
program
that
evaluates
the
continued-fraction
approximation
ln(r(x))
=
(x
-
V^ln
x - x +
a0
+
a:
x
+
a2
for
the
first
six
values
of a:
a0=1/2ln(27r)
a!-1/12
a2
=
1/30
a3
=
53/210
a4
=
195/371
a5
=
1.011523068
a6
=
1.517473649.
65