function r8vec_normsq_test ( )

%*****************************************************************************80
%
%% r8vec_normsq_test() tests r8vec_normsq().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    02 August 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_NORMSQ_TEST\n' );
  fprintf ( 1, '  R8VEC_NORMSQ computes the squared L2 norm of an R8VEC.\n' );
 
  n = 10;
  b = -n;
  c = n;
  a = b + ( c - b ) * rand ( n, 1 );
 
  r8vec_print ( n, a, '  Input vector:' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Square of L2 norm = %f\n', r8vec_normsq ( n, a ) );

  return
end
