How to resolve the algorithm Averages/Root mean square step by step in the ERRE programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm Averages/Root mean square step by step in the ERRE programming language
Table of Contents
Problem Statement
Compute the Root mean square of the numbers 1..10.
The root mean square is also known by its initials RMS (or rms), and as the quadratic mean. The RMS is calculated as the mean of the squares of the numbers, square-rooted:
Let's start with the solution:
Step by Step solution about How to resolve the algorithm Averages/Root mean square step by step in the ERRE programming language
Source code in the erre programming language
PROGRAM ROOT_MEAN_SQUARE
BEGIN
N=10
FOR I=1 TO N DO
S=S+I*I
END FOR
X=SQR(S/N)
PRINT("Root mean square is";X)
END PROGRAM
You may also check:How to resolve the algorithm First-class functions step by step in the Lang programming language
You may also check:How to resolve the algorithm Horner's rule for polynomial evaluation step by step in the Logo programming language
You may also check:How to resolve the algorithm N-smooth numbers step by step in the Kotlin programming language
You may also check:How to resolve the algorithm Time a function step by step in the Oz programming language
You may also check:How to resolve the algorithm 100 doors step by step in the Phix programming language