1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/math/gamma.c.v
2021-08-23 00:35:28 +03:00

18 lines
274 B
V

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)
}