Updated: 9 August 2010

Use GAMMAINC to calculate the incomplete gamma function. This is the equivalent of the Gamma[a,z] function in Mathematica.

SELECT [wctStatistics].[wct].[GAMMAINC] (

<@A, float,>

,<@X, float,>)

a value to be passed to the function. @*A *is an expression of type **float** or of a type that can be implicitly converted to **float**.

a value to be passed to the function. @*X *is an expression of type **float** or of a type that can be implicitly converted to **float**.

float

· If *@A *≤ 0 or *@X* ≤ 0, GAMMAINC returns an error.

select wct.GAMMAINC(2, 2)

This produces the following result

----------------------

0.406005850189806

(1 row(s) affected)