示例#1
0
文件: gamma.go 项目: postfix/gsl-1
func Gamma(x float64) float64 {
	return float64(C.gsl_sf_gamma(C.double(x)))
}
示例#2
0
文件: gamma.go 项目: mingzhi/gsl-cgo
/* Gamma(x), x not a negative integer
 * Uses real Lanczos method.
 */
func Gamma(x float64) (r float64) {
	r = float64(C.gsl_sf_gamma(C.double(x)))
	return
}