1 | use super::lgamma_r; |
---|---|
2 | |
3 | /// The natural logarithm of the |
4 | /// [Gamma function](https://en.wikipedia.org/wiki/Gamma_function) (f64). |
5 | #[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)] |
6 | pub fn lgamma(x: f64) -> f64 { |
7 | lgamma_r(x).0 |
8 | } |
9 |