function cdf = reciprocal_cdf ( x, a, b )

%*****************************************************************************80
%
%% reciprocal_cdf() evaluates the Reciprocal CDF.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    20 September 2004
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real X, the argument of the PDF.
%
%    real A, B, the parameters of the PDF.
%    0.0 < A <= B.
%
%  Output:
%
%    real CDF, the value of the CDF.
%
  if ( x <= 0.0 )

    cdf = 0.0;

  elseif ( 0.0 < x )

    cdf = log ( a / x ) / log ( a / b );

  end

  return
end
