def chisqprob(x, df):
if x <= <NUM_LIT:0>:<EOL><INDENT>return <NUM_LIT:1.0><EOL><DEDENT>if x == <NUM_LIT:0>:<EOL><INDENT>return <NUM_LIT:0.0><EOL><DEDENT>if df <= <NUM_LIT:0>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if x < <NUM_LIT:1.0> or x < df:<EOL><INDENT>return <NUM_LIT:1.0> - _igam(<NUM_LIT:0.5>*df, <NUM_LIT:0.5>*x)<EOL><DEDENT>return _igamc(<NUM_LIT:0.5>*df, <NUM_LIT:0.5>*x)<EOL>
Probability value (1-tail) for the Chi^2 probability distribution.

Broadcasting rules apply.

Parameters
----------
x : array_like or float > 0

df : array_like or float, probably int >= 1

Returns
-------
chisqprob : ndarray
    The area from `chisq` to infinity under the Chi^2 probability
    distribution with degrees of freedom `df`.