function p00_f2_dif_test ( )

%*****************************************************************************80
%
%% p00_f2_dif_test() compares the exact and approximate second derivatives.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    06 December 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'P00_F2_DIF_TEST\n' );
  fprintf ( 1, '  P00_F2_DIF approximates the second derivative F2\n' );
  fprintf ( 1, '  by a finite difference F2_DIF.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Problem               X           F2(X)       F2_DIF(X)\n' );
  fprintf ( 1, '\n' );
%
%  Get the number of problems.
%
  problem_num = p00_problem_num ( );

  for problem = 1 : problem_num

    x = p00_start ( problem );

    f2 = p00_f2 ( problem, x );

    f2_dif = p00_f2_dif ( problem, x );

    fprintf ( 1, '  %7d  %14.6g  %14.6g  %14.6g\n', problem, x, f2, f2_dif );

  end

  return
end
