rms function

Root Mean Square