MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / gamma

Function gamma

std/math/src/main/float.rs:164–168  ·  view source on GitHub ↗
(x: f64)

Source from the content-addressed store, hash-verified

162
163#[plugin_fn]
164fn gamma(x: f64) -> Result<f64> {
165 let r = libm::tgamma(x);
166 if r.is_nan() && !x.is_nan() { return Err(dom()); }
167 Ok(r)
168}
169
170#[plugin_fn]
171fn lgamma(x: f64) -> Result<f64> {

Callers

nothing calls this directly

Calls 1

domFunction · 0.70

Tested by

no test coverage detected