Exemplo n.º 1
0
func GammaIncQ(a float64, x float64) float64 {
	return float64(C.gsl_sf_gamma_inc_Q(C.double(a), C.double(x)))
}
Exemplo n.º 2
0
/* Normalized Incomplete Gamma Function
 *
 * Q(a,x) = 1/Gamma(a) Integral[ t^(a-1) e^(-t), {t,x,Infinity} ]
 *
 * a >= 0, x >= 0
 *   Q(a,0) := 1
 *   Q(0,x) := 0, x != 0
 *
 */
func GammaIncQ(a, x float64) (r float64) {
	r = float64(C.gsl_sf_gamma_inc_Q(C.double(a), C.double(x)))
	return
}