function y = humps_fun ( x )

%*****************************************************************************80
%
%% humps_fun() evaluates a function used for demonstrations.
%
%  Discussion:
%
%    The "interesting" portion of the function is visible over the range
%    0 <= x <= 2.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    29 June 2019
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real x(): the evaluation points.
%
%  Output:
%
%    real y(): the function values.
%
  y = 1.0 ./ ((x-0.3).^2 + 0.01) + 1.0 ./ ((x-0.9).^2 + 0.04) - 6.0;

  return
end
