function bernoulli_number3_test ( )

%*****************************************************************************80
%
%% bernoulli_number3_test() tests bernoulli_number3().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 October 2008
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'bernoulli_number3_test():\n' );
  fprintf ( 1, '  bernoulli_number3() computes Bernoulli numbers.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '   I     Exact           BERNOULLI_NUMBER3\n' );
  fprintf ( 1, '\n' );
  
  n_data = 0;

  while ( true )

    [ n_data, n, c0 ] = bernoulli_number_values ( n_data );

    if ( n_data == 0 )
      break
    end

    c1 = bernoulli_number3 ( n );

    fprintf ( 1, '  %2d  %14e  %14e\n', n, c0, c1 );

  end

  return
end
