function r8vec_mean_geometric_test ( )

%*****************************************************************************80
%
%% r8vec_mean_geometric_test() tests r8vec_mean_geometric().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    30 November 2017
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'r8vec_mean_geometric_test():\n' );
  fprintf ( 1, '  r8vec_mean_geometric() computes the geometric mean of an R8VEC.\n' );;
 
  n = 10;
  r8_lo = 0.0;
  r8_hi = 5.0;
  a = r8_lo + ( r8_hi - r8_lo ) * rand ( n, 1 );
 
  r8vec_print ( n, a, '  Input vector:' );

  mean_geometric = r8vec_mean_geometric ( n, a );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Geometric mean = %g\n', mean_geometric );

  return
end
