function harmonic_estimate_test ( )

%*****************************************************************************80
%
%% harmonic_estimate_test() tests harmonic_estimate().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 May 2022
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'harmonic_estimate_test():\n' );
  fprintf ( 1, '  harmonic_estimate() estimates Harmonic numbers.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '       N                H(n)                    H(n)                  H(n)\n' );
  fprintf ( 1, '                        estimated               tabulated            computed\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, n, h2 ] = harmonic_values ( n_data );

    if ( n_data == 0 )
      break
    end

    h1 = harmonic_estimate ( n );

    h3 = harmonic ( n );

    fprintf ( 1, '  %6d  %20.10g  %20.10g  %20.10g\n', n, h1, h2, h3 );

  end

  return
end
