function y = root_mean_square(x)
format long
time = x(1);
SquareX = x(2);
if time == 0
    y = 0;
else
    MeanSquareX = (1/time)*SquareX;
    RMS = (sqrt(MeanSquareX));
    y = real(RMS);
end

