Calculate Root Mean Square(RMS) value using python
The task is to calculate the Root Mean Square (RMS) of the given numbers using python . Let's write a program in python to calculate the Root Mean Square (RMS) value .
The Formula is : https://en.wikipedia.org/wiki/Root_mean_square
How to run
Applied the formula to calculate RMS Value , Now simply copy and paste the code and save as a .py file and open the terminal and run the following command followed by the values .Make sure you are in the same directory.
$ python your_file_name.py ~Enter The values: *Enter values separated with space
Sample Input :
$ python rmsValue.py ~Enter The values:10 4 6 8
Sample Output :
7.3484692283495345
Any suggestion ? Write in comment box.
Comments
Leave a comment
You are not LoggedIn but you can comment as an anonymous user which requires manual approval. For better experience please Login.