示例#1
0
文件: gamma.go 项目: postfix/gsl-1
func Lnfact(n uint32) float64 {
	return float64(C.gsl_sf_lnfact(C.uint(n)))
}
示例#2
0
文件: gamma.go 项目: mingzhi/gsl-cgo
/* log(n!)
 * Faster than ln(Gamma(n+1)) for n < 170; defers for larger n.
 */
func LnFact(n uint32) (r float64) {
	r = float64(C.gsl_sf_lnfact(C.uint(n)))
	return r
}