示例#1
0
文件: gamma.go 项目: postfix/gsl-1
func Gammastar(x float64) float64 {
	return float64(C.gsl_sf_gammastar(C.double(x)))
}
示例#2
0
文件: gamma.go 项目: mingzhi/gsl-cgo
/* Regulated Gamma Function, x > 0
 * Gamma^*(x) = Gamma(x)/(Sqrt[2Pi] x^(x-1/2) exp(-x))
 *            = (1 + 1/(12x) + ...),  x->Inf
 */
func GammaStar(x float64) (r float64) {
	r = float64(C.gsl_sf_gammastar(C.double(x)))
	return
}