Anonymous user
Averages/Root mean square: Difference between revisions
→{{header|Python}}: make compatible with 2.x
(New task and Python solution.) |
(→{{header|Python}}: make compatible with 2.x) |
||
Line 10:
=={{header|Python}}==
<lang Python>>>> from
>>> from math import sqrt
>>> def qmean(num):
return sqrt(sum(n*n for n in num)/len(num))
|