Esempio n. 1
0
func BetaInc(a float64, b float64, x float64) float64 {
	return float64(C.gsl_sf_beta_inc(C.double(a), C.double(b), C.double(x)))
}
Esempio n. 2
0
/* Normalized Incomplete Beta Function
 * B_x(a,b)/B(a,b)
 *
 * a > 0, b > 0, 0 <= x <= 1
 * exceptions: GSL_EDOM, GSL_EUNDRFLW
 */
func BetaInc(a, b, x float64) (r float64) {
	r = float64(C.gsl_sf_beta_inc(C.double(a), C.double(b), C.double(x)))
	return
}