function x = cauchy_cdf_inv ( cdf, a, b )

%*****************************************************************************80
%
%% cauchy_cdf_inv() inverts the Cauchy CDF.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    05 September 2004
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real CDF, the value of the CDF.
%    0.0 <= CDF <= 1.0.
%
%    real A, B, the parameters of the PDF.
%    0.0 < B.
%
%  Output:
%
%    real X, the corresponding argument.
%
  x = a + b * tan ( pi * ( cdf - 0.5 ) );

  return
end
