Averages/Root mean square: Difference between revisions

m
(added Easylang)
imported>Arakov
 
(2 intermediate revisions by 2 users not shown)
Line 707:
=={{header|Elena}}==
{{trans|C#}}
ELENA 56.0x :
<syntaxhighlight lang="elena">import extensions;
import system'routines;
Line 715:
{
get RootMeanSquare()
= (self.selectBy::(x => x * x).summarize(Real.new()) / self.Length).sqrt();
}
Line 1,904:
=={{header|RPL}}==
≪ LIST→ → n
0 1 n '''START''' SQSWAP nSQ ROLL+ '''NEXT'''
2 n '''START''' + '''NEXT'''
n / √
≫ ≫ '<span style="color:blue">RMS</span>' STO
Line 1,915 ⟶ 1,914:
</pre>
{{works with|HP|48G}}
DUP ≪ SQ + DOLIST ∑LISTSTREAM LASTSWAP SIZE / √
≫ '<span style="color:blue">RMS</span>' STO
 
Line 2,324 ⟶ 2,323:
 
=={{header|Wren}}==
<syntaxhighlight lang="ecmascriptwren">var rms = ((1..10).reduce(0) { |acc, i| acc + i*i }/10).sqrt
System.print(rms)</syntaxhighlight>
 
Anonymous user