コード例 #1
0
ファイル: gamma.go プロジェクト: postfix/gsl-1
func GammaIncP(a float64, x float64) float64 {
	return float64(C.gsl_sf_gamma_inc_P(C.double(a), C.double(x)))
}
コード例 #2
0
ファイル: gamma.go プロジェクト: mingzhi/gsl-cgo
/* Complementary Normalized Incomplete Gamma Function
 *
 * P(a,x) = 1/Gamma(a) Integral[ t^(a-1) e^(-t), {t,0,x} ]
 *
 * a > 0, x >= 0
 *
 * exceptions: GSL_EDOM
 */
func GammaIncP(a, x float64) (r float64) {
	r = float64(C.gsl_sf_gamma_inc_P(C.double(a), C.double(x)))
	return
}