Averages/Root mean square: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: added syntax colouring the hard way) |
(add BQN) |
||
Line 352: | Line 352: | ||
DEF FNrms(a()) = MOD(a()) / SQR(DIM(a(),1)+1)</lang> |
DEF FNrms(a()) = MOD(a()) / SQR(DIM(a(),1)+1)</lang> |
||
=={{header|BQN}}== |
|||
RMS is a tacit function which computes root mean square. |
|||
<lang bqn>RMS ← √+´∘ט÷≠ |
|||
RMS 1+↕10</lang> |
|||
<lang>6.2048368229954285</lang> |
|||
[https://mlochbaum.github.io/BQN/try.html#code=Uk1TIOKGkCDiiJorwrTiiJjDl8ucw7fiiaAKClJNUyAxK+KGlTEw Try It!] |
|||
=={{header|C}}== |
=={{header|C}}== |
||
<lang c>#include <stdio.h> |
<lang c>#include <stdio.h> |