function p00_interval_test ( )

%*****************************************************************************80
%
%% p00_interval_test() tests p00_interval().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    23 February 2026
%
%  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, '  test               A            F(A)               B            F(B)\n' );
  fprintf ( 1, '\n' );

  test_num = p00_test_num ( );

  for test = 1 : test_num

    [ a, b ] = p00_interval ( test );

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

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

  end

  return
end

