Averages/Root mean square: Difference between revisions
Content deleted Content added
Thundergnat (talk | contribs) m syntax highlighting fixup automation |
SqrtNegInf (talk | contribs) m →{{header|Raku}}: move paren to a better location |
||
Line 1,776: | Line 1,776: | ||
=={{header|Raku}}== |
=={{header|Raku}}== |
||
(formerly Perl 6) |
(formerly Perl 6) |
||
{{works with|Rakudo|2015.12}} |
|||
<syntaxhighlight lang=perl6>sub rms(*@nums) { sqrt [+] |
<syntaxhighlight lang=perl6>sub rms(*@nums) { sqrt ([+] @nums X** 2) / @nums } |
||
say rms 1..10;</syntaxhighlight> |
say rms 1..10;</syntaxhighlight> |