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

%*****************************************************************************80
%
%% chi_cdf() evaluates the Chi CDF.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 March 2016
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real X, the argument of the PDF.
%
%    real A, B, C, the parameters of the PDF.
%    0 < B,
%    0 < C.
%
%  Output:
%
%    real CDF, the value of the CDF.
%
  if ( x <= a )

    cdf = 0.0;

  else

    y = ( x - a ) / b;
    x2 = 0.5 * y * y;
    p2 = 0.5 * c;

    cdf = r8_gamma_inc ( p2, x2 );

  end

  return
end
