function ya = humps_antideriv ( x )

%*****************************************************************************80
%
%% humps_antideriv() evaluates the antiderivative of the humps function.
%
%  Discussion:
%
%    y = 1.0 ./ ( ( x - 0.3 ).^2 + 0.01 ) ...
%      + 1.0 ./ ( ( x - 0.9 ).^2 + 0.04 ) ...
%      - 6.0;
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    15 June 2019
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real x(): the argument.
%
%  Output:
%
%    real ya(): the value of the antiderivative at x.
%
  ya = ( 1.0 / 0.1 ) * atan ( ( x - 0.3 ) / 0.1 ) ...
     + ( 1.0 / 0.2 ) * atan ( ( x - 0.9 ) / 0.2 ) ...
     - 6.0 * x;

  return
end

