function r8vec_normalize_test ( )

%*****************************************************************************80
%
%% r8vec_normalize_test() tests r8vec_normalize().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 July 2018
%
%  Author:
%
%    John Burkardt
%
  n = 10;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_NORMALIZE_TEST\n' );
  fprintf ( 1, '  R8VEC_NORMALIZE normalizes an R8VEC in L2 norm.\n' );
 
  b = - n;
  c = n;
  a = b + ( c - b ) * rand ( n, 1 );
 
  r8vec_print ( n, a, '  Input vector:' );

  a = r8vec_normalize ( n, a );

  r8vec_print ( n, a, '  After calling R8VEC_NORMALIZE:' );

  return
end
