Function compute::functions::digamma[][src]

pub fn digamma(x: f64) -> f64
Expand description

Calculates the digamma function, which is the logarithmic derivative of the gamma function. It obeys the equation digamma(x+1) = digamma(x) + 1/x. The approximation works better for large values. If the value is small, this function will shift it up using the digamma recurrence relation.