Averages/Arithmetic mean: Difference between revisions

Content added Content deleted
No edit summary
Line 27: Line 27:
STA Temp+1
STA Temp+1
DEY
DEY
BPL AddLoop
CPY #255
BNE AddLoop


LDY #-1
LDY #-1
Line 46: Line 47:
PLA
PLA
RTS ;return from routine</lang>
RTS ;return from routine</lang>

=={{header|ActionScript}}==
=={{header|ActionScript}}==
<lang ActionScript>function mean(vector:Vector.<Number>):Number
<lang ActionScript>function mean(vector:Vector.<Number>):Number