function value = rms ( a )

%*****************************************************************************80
%
%% rms returns the RMS norm of an R8VEC.
%
%  Discussion:
%
%    The vector RMS norm is defined as:
%
%      value = sqrt ( sum ( 1 <= I <= N ) A(I)^2 / N ).
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    03 November 2020
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real A(N), the vector.
%
%  Output:
%
%    real VALUE, the RMS norm.
%
  n = length ( a );
  value = sqrt ( sum ( a.^2 ) / n );

  return
end
