| ??? 05/21/00 06:41 Read: times |
#2793 - RE: Division of 16-bit number... |
The answer is yes... you can do that in an 8051. Remember most calculators have less computational power than an 8051. You just need to know the mathematic tricks. I recommend hiring a consultant if you really need it done efficiently - however most applications don't need that level of expertise. NOT SO AVERAGE AVERAGES ======================= Here's a useful statistics trick. Its not the most efficient way to solve your puzzle, but it is another way to compute averages. Rather than doing 17 as an example, lets cut it down to 5 values for simplicity. M = (V1+V2+V3+V4+V5)/5 M = [4*((V1+V2+V3+V4)/4]+V5)/5 M = (4*AVG(V1-V4)+V5)/5 In other words, you can do partial averages and still combine them as long as you properly weight the partials. If your number of elements in each partial is the same, you can ignore their recombination weights as they'll cancel out. M = (V1+V2+V3+V4+V5+V6+V7+V8+V9)/9 M = [AVG(V1-V3)+AVG(V4-V6)+AVG(V7-V9)]/3 -Jay C. Box |
| Topic | Author | Date |
| Division of 16-bit number... | 01/01/70 00:00 | |
| RE: Division of 16-bit number... | 01/01/70 00:00 | |
| RE: Division of 16-bit number... | 01/01/70 00:00 | |
| RE: Division of 16-bit number... | 01/01/70 00:00 | |
| RE: Division of 16-bit number... | 01/01/70 00:00 | |
| RE: Division of 16-bit number... | 01/01/70 00:00 | |
RE: Division of 16-bit number... | 01/01/70 00:00 |



