Skip to main content

beta_impl

Function beta_impl 

Source
pub fn beta_impl<P, E, V, const N: usize>(a: V, b: V, l: &Lanczos<E, N>) -> V
Expand description

Shared beta implementation for all real element types.

B(a, b) = Gamma(a)Gamma(b)/Gamma(a+b), evaluated from the exp(g)-scaled Lanczos sums directly rather than through three tgamma calls, so the large common factors cancel symbolically instead of overflowing.

Only defined for a, b > 0; anything else is NaN under check_overflow.

Last built: 2026-09-08 21:35:55 UTC