Averages/Simple moving average: Difference between revisions
Content added Content deleted
Alextretyak (talk | contribs) m (→{{header|11l}}) |
Alextretyak (talk | contribs) m (fix) |
||
Line 68: | Line 68: | ||
L(e) [1, 2, 3, 4, 5, 5, 4, 3, 2, 1] |
L(e) [1, 2, 3, 4, 5, 5, 4, 3, 2, 1] |
||
print(‘Added #., sma(3) = #.6, sma(5) = #.6’.format(e, sma3.add(e), sma5.add(e))) |
print(‘Added #., sma(3) = #.6, sma(5) = #.6’.format(e, sma3.add(e), sma5.add(e)))</lang> |
||
{{out}} |
{{out}} |
||
<pre> |
<pre> |