Averages/Root mean square: Difference between revisions

m
No edit summary
Line 36:
rms field sqrt((sum - round off error)/(UPB v - LWB v + 1))
);
 
# define an ABS OPerator similar to ABS of COMPLex numbers #
OP ([]RMSFIELD)RMSFIELD ABS = rms;
 
main: (
Line 44 ⟶ 41:
 
print(("crude rms(one to ten): ", crude rms(one to ten), new line));
print(("rms(one to ten): ", rms(one to ten), new line));
print(("ABS one to ten: ", ABS one to ten, new line))
)</lang>
Output:
Line 51 ⟶ 47:
crude rms(one to ten): +6.20483682299543e +0
rms(one to ten): +6.20483682299543e +0
ABS one to ten: +6.20483682299543e +0
</pre>
 
=={{header|AutoHotkey}}==
===Using a loop===