function p00_f_test ( )

%*****************************************************************************80
%
%% p00_f()_test tests p00_f()
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    16 March 2026
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'p00_f_test():\n' );
  fprintf ( 1, '  p00_f() evaluates the optimization function f(x)\n' );
  fprintf ( 1, '  at any point x, and for any test.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  test               X            F(X)\n' );
  fprintf ( 1, '\n' );

  test_num = p00_test_num ( );

  for test = 1 : test_num

    [ a, b ] = p00_interval ( test );

    x_mid = 0.5 * ( a + b );

    f_mid = p00_f ( test, x_mid );

    fprintf ( 1, '  %7d  %14.6g  %14.6g\n', test, x_mid, f_mid );

  end

  return
end

