function x = weibull_cdf_inv ( cdf, a, b, c )

%*****************************************************************************80
%
%% weibull_cdf_inv() inverts the Weibull CDF.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    22 September 2004
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real CDF, the value of the CDF.
%    0.0 < CDF < 1.0.
%
%    real A, B, C, the parameters of the PDF.
%    0.0 < B,
%    0.0 < C.
%
%  Output:
%
%    real X, the corresponding argument of the CDF.
%
  x = a + b * ( -log ( 1.0 - cdf ) )^( 1.0 / c );

  return
end
