function bernoulli_number2_test ( )

%*****************************************************************************80
%
%% bernoulli_number2_test() tests bernoulli_number2().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 October 2008
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'bernoulli_number2_test():\n' );
  fprintf ( 1, '  bernoulli_number2() computes Bernoulli numbers;\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '   I     Exact           BERNOULLI_NUMBER2\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_number2 ( n );
 
    fprintf ( 1, '  %2d  %14e  %14e\n', n, c0, c1(n+1) );

  end
 
  return
end
