Averages/Root mean square: Difference between revisions

Content added Content deleted
No edit summary
Line 36: Line 36:
rms field sqrt((sum - round off error)/(UPB v - LWB v + 1))
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: (
main: (
Line 44: Line 41:


print(("crude rms(one to ten): ", crude rms(one to ten), new line));
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(("rms(one to ten): ", rms(one to ten), new line))
print(("ABS one to ten: ", ABS one to ten, new line))
)</lang>
)</lang>
Output:
Output:
Line 51: Line 47:
crude rms(one to ten): +6.20483682299543e +0
crude rms(one to ten): +6.20483682299543e +0
rms(one to ten): +6.20483682299543e +0
rms(one to ten): +6.20483682299543e +0
ABS one to ten: +6.20483682299543e +0
</pre>
</pre>

=={{header|AutoHotkey}}==
=={{header|AutoHotkey}}==
===Using a loop===
===Using a loop===