function x = reciprocal_cdf_inv ( cdf, a, b )

%*****************************************************************************80
%
%% reciprocal_cdf_inv() inverts the Reciprocal CDF.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    20 September 2004
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real CDF, the value of the CDF.
%
%    real A, B, the parameters of the PDF.
%    0.0 < A <= B.
%
%  Output:
%
%    real X, the corresponding argument of the CDF.
%
  if ( cdf <= 0.0 )
    x = 0.0;
  elseif ( 0.0 < cdf )
    x = b^cdf / a^( cdf - 1.0 );
  end

  return
end
