Gamma function over the whole double range (internal; see fastmath.special/gamma).
Gamma function over the whole double range (internal; see [[fastmath.special/gamma]]).
(digamma x)Digamma function psi(x): NaN at the negative integers, -Inf at +0.0 and Inf at -0.0 (one-sided limits).
Digamma function `psi(x)`: `NaN` at the negative integers, `-Inf` at `+0.0` and `Inf` at `-0.0` (one-sided limits).
(gamma x)Gamma function for any double: NaN at the poles (zero and negative integers) and at -Inf, Inf at Inf, overflow to Inf above 171.62.
Gamma function for any double: `NaN` at the poles (zero and negative integers) and at `-Inf`, `Inf` at `Inf`, overflow to `Inf` above 171.62.
(gamma-pole? x)True for a pole of Gamma: zero and the negative integers.
True for a pole of Gamma: zero and the negative integers.
(gamma-ratio nums dens)Gamma(n1)...Gamma(nk) / (Gamma(d1)...Gamma(dl)).
Evaluated directly (a pole gives Inf, as unsafe-gamma); when the products overflow or underflow and no argument is a pole it is evaluated through log|Gamma|.
`Gamma(n1)...Gamma(nk) / (Gamma(d1)...Gamma(dl))`. Evaluated directly (a pole gives `Inf`, as [[unsafe-gamma]]); when the products overflow or underflow and no argument is a pole it is evaluated through `log|Gamma|`.
(gamma-ratio-fallback ns ds)Log-space value of the gamma ratio, used when the products overflow or underflow.
ns and ds are the numerator and denominator arguments.
Log-space value of the gamma ratio, used when the products overflow or underflow. `ns` and `ds` are the numerator and denominator arguments.
(gamma-sign x)Sign of Gamma(x) (+-1.0) for a non-pole x.
Sign of `Gamma(x)` (`+-1.0`) for a non-pole `x`.
(log-gamma x)log|Gamma(x)| for any double: Inf at the poles and at Inf, NaN at -Inf.
`log|Gamma(x)|` for any double: `Inf` at the poles and at `Inf`, `NaN` at `-Inf`.
(unsafe-gamma x)Gamma(x) with +Inf (instead of NaN) at the poles, so that 1/Gamma is 0 there (for the hypergeometric transformations).
`Gamma(x)` with `+Inf` (instead of `NaN`) at the poles, so that `1/Gamma` is `0` there (for the hypergeometric transformations).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |