HP 12C#ABA hp 12c_solutions handbook_English_E.pdf - Page 76

Calculate the 3-element moving average for the data given

Page 76 highlights

5. Continue as above, keying in and storing each data point in its appropriate register until m data points have been stored. 6. Press 00 to calculate the first moving average. 7. Key in the next data point and press 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: KEYSTROKES DISPLAY CLEAR 1 2 1 3 2 3 0 3 01 00- 01- 45 1 02- 45 2 03- 44 1 04- 40 05- 45 3 06- 44 2 07- 40 08- 45 0 09- 10 10- 31 11- 44 3 12-43, 33 01 Keystrokes CLEAR 3 0 211570 1 112550 2 190060 3 Display 0.00 3.00 211,570.00 112,550.00 190,060.00 75

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165

75
5.
Continue as above, keying in and storing each data point in its appropriate
register until
m
data points have been stored.
6.
Press
00
to calculate the first moving average.
7.
Key in the next data point and press
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:
KEYSTROKES
DISPLAY
CLEAR
00-
1
01-
45
1
2
02-
45
2
1
03-
44
1
04-
40
3
05-
45
3
2
06-
44
2
3
07-
40
0
08-
45
0
09-
10
10-
31
3
11-
44
3
01
12-43, 33 01
Keystrokes
Display
CLEAR
0.00
3
0
3.00
211570
1
211,570.00
112550
2
112,550.00
190060
3
190,060.00