Averages/Root mean square: Difference between revisions
m
→Not using a loop
Line 29:
Using these equations:<br>
<math>\sum_{i=1}^n i^2 = \frac{n(n+1)(2n+1)}{6}</math> See [[wp:List of mathematical series]]<br><br>
for <math>
We can show that:<br>
<math>\sum_{i=a}^b i^2 = \frac{b(b+1)(2b+1)-a(a-1)(2a-1)}{6}</math>
|