Averages/Simple moving average: Difference between revisions

(→‎{{header|Go}}: improved to avoid accumulated error, added output)
Line 739:
 
=={{header|Elena}}==
<lang elena>#define std'basicdictionary'*.
#define std'dictionarybasic'*.
#define std'collections'*.
#define std'patterns'*.
#define ext'patterns'*.
#define std'dictionary'*.
 
#symbol SMA : aPeriod = List~
Line 766 ⟶ 765:
]
}.
 
// --- Program ---
 
#symbol Program =>
Line 780 ⟶ 777:
].
loop::{ &fromIntegerfor:1 &to:5 } run:anAction rewind:anAction.
].
</lang>
Anonymous user