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

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

  return
end
