(data)
| 53 | # Example: Compare numerical accuracy of three appoaches to computing averages |
| 54 | |
| 55 | def avgsum(data): # Sum all of the elements |
| 56 | return sum(data, F(0)) / len(data) |
| 57 | |
| 58 | def avgrun(data): # Make small adjustments to a running mean |
| 59 | m = data[0] |