Forecasting    77 
Program Instructions: 
1.  Key in the program. 
2. 
Press fCLEARH. Key in the number of elements, m, and press ?0. 
3. 
Key in the first data point and press ?1. 
4. 
Key in the second data point and press ?2.  
5.  Continue as above, keying in and storing each data point in its appropriate register 
until m data points have been stored. 
6. 
Press g(000t to calculate the first moving average. 
7. 
Key in the next data point and press t to calculate the next moving average. 
8.  Repeat step 7 for each new data point. 
 
Example 2: Calculate the 3-element moving average for the data given in example 1. 
Your modified program listing will look like this: 
 
12c platinum / 12C
RPN KEYSTROKES
DISPLAY 
12c platinum 
ALG KEYSTROKES 
DISPLAY 
fs 
 
 
fs 
 
fCLEARÎ 
000, 
 
fCLEARÎ 
000,          
:1 
001,   45   1
 
:1          
001,   45   1 
:2 
002,   45   2
 
+ 
002,       40 
?1 
003,   44   1
 
:2          
003,   45   2 
+ 
004,       40
 
?1          
004,   44   1 
:3 
005,   45   3
 
+ 
005,       40 
?2 
006,   44   2
 
:3          
006,   45   3 
+ 
007,       40
 
?2          
007,   44   2 
:0 
008,   45   0
 
z 
008,       10 
z 
009,       10
:0          
009,   45   0 
t 
010,       31
³ 
010,       36 
?3 
011,   44   3
t 
011,       31 
g(001 
012,43,33,001
?3          
012,   44   3 
fs 
 
g(001    
013,43,33,001 
 
 
fs 
 
 
12c platinum / 12C
RPN Keystrokes 
12c platinum 
ALG Keystrokes
Display Comments 
fCLEARH  fCLEARH 
 0.00 
 
3?0 3?0 
 3.00 
 
211570?1 211570?1 
 211,570.00 
 
112550?2 112550?2 
 112,550.00 
 
190060?3 190060?3 
 190,060.00 
 
g(000t  g(000t 
 171,393.33 
3-month average for March. 
131760t 131760t 
 144,790.00 
3-month average for April.