function f = p09_f ( x )

%*****************************************************************************80
%
%% p09_f() evaluates the objective function for problem 9.
%
%  Discussion:
%
%    This function is oscillatory, with many local minima.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    10 February 2009
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real X, the argument of the objective function.
%
%  Output:
%
%    real F, the value of the objective function.
%
  f = x .* x - 10.0 * sin ( x .* x - 3.0 * x + 2.0 );

  return
end
