blob: a4451cefab1fe770e9e2123b6aab565fce3c68f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
module math
fn C.tgamma(x f64) f64
fn C.lgamma(x f64) f64
// gamma computes the gamma function value
[inline]
pub fn gamma(a f64) f64 {
return C.tgamma(a)
}
// log_gamma computes the log-gamma function value
[inline]
pub fn log_gamma(x f64) f64 {
return C.lgamma(x)
}
|