??? 05/17/05 18:44 Read: times |
#93546 - Correction Responding to: ???'s previous message |
First, I want to thank whoever gave me the positive feedback for the preceeding post. Now please let me correct the error.
If you have the average of n numbers in the accumulator, and n in the B register, and you add an (n+1)th number to the accumulator without first multiplying by n, you are not calculating the running average of the series. I apologize. I was apparently near sleep when I wrote the preceeding post. You can calculate the average by adding the series of n numbers in the accumulator, incrementing B register each time, and then dividing the accumulator by the B register (DIV AB). But if you then want to find the average with the (n+1)th number added into the series, you must first multiply the average (the accumulator) by n (which is to say execute MULT AB) and then add the (n+1)th number to the accumulator, increment B register and DIV AB. |
Topic | Author | Date |
Advance calculation and processing | 01/01/70 00:00 | |
It is easy | 01/01/70 00:00 | |
What if I persist? | 01/01/70 00:00 | |
ok | 01/01/70 00:00 | |
Not entirely sure | 01/01/70 00:00 | |
late night or miller time? | 01/01/70 00:00 | |
sine function | 01/01/70 00:00 | |
Correction | 01/01/70 00:00 | |
it works, but | 01/01/70 00:00 | |
Overflow ? | 01/01/70 00:00 | |
calrification![]() | 01/01/70 00:00 | |
Another sine alternative | 01/01/70 00:00 |