Averages/Simple moving average: Difference between revisions

m
(Added Easylang)
m (→‎{{header|Wren}}: Minor tidy)
Line 4,885:
{{trans|Go}}
{{libheader|Wren-fmt}}
<syntaxhighlight lang="ecmascriptwren">import "./fmt" for Fmt
 
var sma = Fn.new { |period|
Line 4,908:
for (x in [1, 2, 3, 4, 5, 5, 4, 3, 2, 1]) {
Fmt.precision = 3
SystemFmt.print("%(Fmt.f(5,$5f x)) $5f %(Fmt.f(5$5f", x, sma3.call(x))) %(Fmt.f(5, sma5.call(x)))")
}</syntaxhighlight>
 
9,479

edits