Averages/Root mean square: Difference between revisions

→‎{{header|BQN}}: Add Under-based solution
(add BQN)
(→‎{{header|BQN}}: Add Under-based solution)
Line 360:
 
[https://mlochbaum.github.io/BQN/try.html#code=Uk1TIOKGkCDiiJorwrTiiJjDl8ucw7fiiaAKClJNUyAxK+KGlTEw Try It!]
 
Another solution is to take the arithmetic mean <code>+´÷≠</code> under the square (<code>ט</code>) function. Under (<code>⌾</code>) squares the arguments, then applies the mean, then inverts the square function.
<lang bqn>RMS ← (+´÷≠)⌾(ט)</lang>
 
=={{header|C}}==
<lang c>#include <stdio.h>
99

edits