function p00_interval_test ( )

%*****************************************************************************80
%
%% P00_INTERVAL_TEST tests P00_INTERVAL.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license. 
%
%  Modified:
%
%    06 December 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'P00_INTERVAL_TEST\n' );
  fprintf ( 1, '  P00_INTERVAL returns the finite interval [A,B] over which\n' );
  fprintf ( 1, '  the optimization procedure is to be carried out.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Problem               A            F(A)               B            F(B)\n' );
  fprintf ( 1, '\n' );

  problem_num = p00_problem_num ( );

  for problem = 1 : problem_num

    [ a, b ] = p00_interval ( problem );

    fa = p00_f ( problem, a );
    fb = p00_f ( problem, b );

    fprintf ( 1, '  %7d  %14.6g  %14.6g  %14.6g  %14.6g\n', problem, a, fa, b, fb );

  end

  return
end
