HP 12c Platinum Reference Manual page 76

Hp 12c platinum: reference guide
Hide thumbs Also See for 12c Platinum:
Table of Contents

Advertisement

76
Forecasting
12c platinum / 12C
RPN KEYSTROKES
?9
10
+
:.1
?.0
11
+
:.2
?.1
12
+
:0
z
t
*
?m
g(001
fs
n: Unused
FV: Unused
R
: X
3
3
R
: X
7
7
R
: X
.1
11
This program can be used for a moving average of 2 to 12 elements. It may be shortened
considerably for moving averages with less than 12 elements. To do this, key in the
program, as shown, from line 01 until you reach a + (ALG: a ? command)
superscripted with the number of elements you desire. Key in this line, then skip the rest
of the program down to line 35. Then key in lines 035 through 039 (ALG:040), being sure
to specify the register number at line 038 (ALG:039), ? m, corresponding to the
number of elements you are using. (For instance, for a 5 element moving average, key in
lines 01 through 13 then go to line 35 in the listing and key in the balance of the program.
Obviously the program listing line 38 (ALG:039), ? m becomes the displayed line 017,
?5 in RPN and 018, ?5 in ALG).
*
At step 038 (ALG:039), m=number of elements in the moving average, i.e. for a 5 element moving
average line 038 (ALG:039) would be ?5 and for a 12 element average line 38 (ALG:039) would
be ?.2
DISPLAY
027,
44
40 ?9
028,
029,45 48
030,44 48
40 ?.0
031,
032,45 48
033,44 48
40 ?.1
034,
035,
45
10 :0
036,
31 ³
037,
-- t
038,
44
039,43,33,001 ?m
REGISTERS
i: Unused
PV: Unused
R
: m
R
0
R
: X
R
4
4
R
: X
R
8
8
R
: X
R
.2
12
12c platinum
ALG KEYSTROKES
9 :.0
10
1 +
0 :.1
11
2 +
1 :.2
12
0 z
*
g(001
fs
: X
1
1
: X
5
5
: X
9
9
-R
: Unused
.3
.4
DISPLAY
027,45 48
028,
44
029,
40
030,45 48
031,44 48
032,
40
033,45 48
034,44 48
035,
10
036,
45
037,
36
038,
31
039,
44
--
040,43,33,001
PMT: Unused
R
: X
2
2
R
: X
6
6
R
: X
.0
.0
0
9
1
0
2
1
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents