The root mean square
is the square root of the arithmetic mean of the squares of the values.
If all the arguments are null or missing values, then the result is
a null or missing value. Otherwise, the result is the root mean square
of the non-null or nonmissing values.
Let be the number of arguments with non-null or nonmissing
values, and let be the values of those arguments. The root mean
square is calculated as follows.
Example
The following statements
illustrate the RMS function: