EasyManuals Logo

HP HP-11C User Manual

HP HP-11C
264 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #210 background imageLoading...
Page #210 background image
208
Section
11:
Programming
Techniques
Store
this
result
in
R.
If
the
value
in
Rp
is
positive or
zero
add
the
numbers
in
R4
and
R,
together
and
display
the
(real)
result.
7.
Ifthe
valuein
Rpisless
than
zero
display
the
contents
of
R4
and
R
separately
(the
complex
root).
8.
Change
the
sign
of
the
value
in
R,
and
repeat
the
previous
two
steps.
In
this
refinement,
we
realize
the
importance
of
using
registers
to
store
intermediate
results.
Also,
the
operations
are
better
defined
and
consideration
is
given
to
the
actual
output.
The
degree
of
refinement
of
the
final
algorithm
is
up
to
personal
preference,
but
the
more
refined
the
algorithm
the
less
likely
the
program
itself
will
have
to
be
later
modified
in
order
to
work
properly.
Our
final
algorithm
takes
us
to
a
satisfactory
level.
Using
the
hypothetical
registers
R4,
Rg,
R,
Rp
and
Rg
do
the
following:
1.
Storeain
Ry,
negative
bin
Rgand
cin
Rg.
2.
Divide
Rg
by
twice
R4
and
store
the
result in
Rp,.
3.
Subtract
four
R4
times
R,
from
Rp
squared
and
store
the
resultin
Rg.
4.
Find
the
square
root
of
the
absolute
value
of
Rg
and
divide
it
by
twice
R
4.
Store
this
valuein
Rp.
5.
IfRpgis
positive
or
zero
add
Rg
to
Rp
and
display
the
result.
6.
IfRgisnegative
display
Rgand
Ry
separately.
7.
Change
the
sign
of
Rg
and
repeat
the
previous
two
steps.
This
algorithm
takes
into
account
the
initial
storage
of
data
and
reuses
Rp,
thereby
reducing
the
total
number
of
storage
registers
needed.
Flowcharts
A
useful
way
of
visualizing
your
developing
algorithm
is
to
use
a
“flowchart”.
A
flowchart
is
a
diagram
of
the
flow
of
the
algorithm,
giving
form
to
the
train
of
thought
you
are
developing.
An
example
that
uses
our
developed
algorithm
is:

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP HP-11C and is the answer not in the manual?

HP HP-11C Specifications

General IconGeneral
BrandHP
ModelHP-11C
CategoryCalculator
LanguageEnglish

Related product manuals