function f = p01_f ( x )

%*****************************************************************************80
%
%% p01_f() evaluates the objective function for problem 1.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    25 February 2002
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real X, the argument of the objective function.
%
%  Output:
%
%    real F, the value of the objective function.
%
  f = ( x - 2.0 ) * ( x - 2.0 ) + 1.0;

  return
end
