Error Propagation of wave

I have a wave (wave0) that contains standard deviations of another wave. What I need to do is write a procedure that will take each data point of wave0, square them, add them, and then take the square root of their sum; resulting in a single value for the entire wave. I'm having difficulty deciding which sort of loop or statement I should be using in order to tell the program to follow this procedure. I need help in figuring out where to start with any of this. Please help.
You don't need any loops for this. Square all the values in your wave (or a temporary wave) and take the sum function. This will do (in the hope you have Igor 6):
Duplicate/Free wave0, tempwave  // temp wave
tempwave = wave0^2  // take the sqare
Variable RootSum = sqrt(sum(tempwave))  // root of sum


There's maybe even an one-liner using MatrixOp.
Hope that helps.