コード例 #1
0
ファイル: gamma.go プロジェクト: postfix/gsl-1
func Lngamma(x float64) float64 {
	return float64(C.gsl_sf_lngamma(C.double(x)))
}
コード例 #2
0
ファイル: gamma.go プロジェクト: mingzhi/gsl-cgo
/* Log[Gamma(x)], x not a negative integer
 * Uses real Lanczos method.
 * Returns the real part of Log[Gamma[x]] when x < 0,
 * i.e. Log[|Gamma[x]|].
 */
func LnGamma(x float64) (r float64) {
	r = float64(C.gsl_sf_lngamma(C.double(x)))
	return
}