function r8vec_entropy_test ( )

%*****************************************************************************80
%
%% r8vec_entropy_test() tests r8vec_entropy().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    05 August 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_ENTROPY_TEST\n' );
  fprintf ( 1, '  R8VEC_ENTROPY computes the entropy of an R8VEC.\n' );
 
  n = 10;
  a_min = 0.0;
  a_max = 10.0;
  a = a_min + ( a_max - a_min ) * rand ( n, 1 );

  r8vec_print ( n, a, '  Input vector:' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Entropy = %f\n', r8vec_entropy ( n, a ) );

  return
end
