80
Section 6: Programming Basics
Example:
Write a program for 5
x
4
+
2
x
3
as
(((5
x
+
2
)
x
)
x
)
x,
then evaluate
for
x
= 7
Keystrokes
Display
|
¥
000-
Assumes position in memory
is line 000. If it is not, clear
program memory.
´
b
B
001-42,21,12
5
002- 5
*
003- 20
5
x
.
2
004- 2
+
005- 40
5
x
+ 2.
*
006- 20
(5
x
+ 2)
x
.
*
007- 20
(5
x
+ 2)
x
2
.
*
008- 20
(5
x
+ 2)
x
3
.
|
n
009- 43 32
|
¥
Returns to Run mode, Prior
result remains in display.
7
v
v
v
7.0000
Loads the stack (X-, Y-, Z-,
and T-registers) with 7.
´
B
12,691.0000
Nonprogrammable Functions
When the calculator is in Program mode, almost every function on the
keyboard can be recorded as an instruction in program memory. The
following functions
cannot
be
stored as instructions in program memory.
´
CLEAR
u
|
‚
Â
´
CLEAR
M
|
W
−
´
%
|
¥
=
/
.
´
U
t
“
nnn
=
/
-
Summary of Contents for HP-15C
Page 1: ...HP 15C Owner s Handbook HP Part Number 00015 90001 Edition 2 4 Sep 2011 ...
Page 17: ...Part l HP 15C Fundamentals ...
Page 64: ......
Page 65: ...Part ll HP 15C Programming ...
Page 118: ...118 ...