function f = p08_f ( x )

%*****************************************************************************80
%
%% p08_f() evaluates the objective function for test 8.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 February 2026
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real x: the argument.
%
%  Output:
%
%    real f: the function value.
%
  f = 0.2 + max ( 3.0 * ( x - 2.0 ).^2, 20.0 * ( x - 1.0 ) );

  return
end

