lambdaway
::
root_mean_square
2
|
list
|
login
|
load
|
|
_h1 root mean square _p Following [[rosettacode|https://rosettacode.org/wiki/Averages/Root_mean_square#Python]], the RMS is calculated as the mean of the squares of the numbers, square-rooted: {b √(Σ x{sub i}{sup 2})/n}. {pre '{def rms {lambda {:n} {sqrt {/ {+ {S.map {lambda {:i} {* :i :i}} {S.serie 1 :n}}} :n}}}} -> {def rms {lambda {:n} {sqrt {/ {+ {S.map {lambda {:i} {* :i :i}} {S.serie 1 :n}}} :n}}}} '{rms 10} -> 6.2048368229954285 }
lambdaway v.20211111