function r8vec_product_test ( )

%*****************************************************************************80
%
%% r8vec_product_test() tests r8vec_product().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 July 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_PRODUCT_TEST\n' );
  fprintf ( 1, '  R8VEC_PRODUCT computes the product of an R8VEC.\n' );;
 
  n = 10;
  r8_lo = -5.0;
  r8_hi = +5.0;
  a = r8_lo + ( r8_hi - r8_lo ) * rand ( n, 1 );
 
  r8vec_print ( n, a, '  Input vector:' );

  total = r8vec_product ( n, a );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Product = %g\n', total );

  return
end
