[go: up one dir, main page]

libm 0.2.15

libm in pure Rust
Documentation
1
2
3
4
5
6
7
use super::tgamma;

/// The [Gamma function](https://en.wikipedia.org/wiki/Gamma_function) (f32).
#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
pub fn tgammaf(x: f32) -> f32 {
    tgamma(x as f64) as f32
}