You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Computes the regularized incomplete gamma function. The upper tail is calculated via the modified Lentz's method for computing continued fractions, the lower tail using a power expansion.
730
+
* Computes the regularized incomplete gamma function.
729
731
*
730
732
* ## Notes
731
733
*
734
+
* - The upper tail is calculated via the modified Lentz's method for computing continued fractions, the lower tail using a power expansion.
732
735
* - When `a >= FLOAT64_MAX_NTH_FACTORIAL` and computing the non-normalized incomplete gamma, result is rather hard to compute unless we use logs. There are really two options a) if `x` is a long way from `a` in value then we can reliably use methods 2 and 4 below in logarithmic form and go straight to the result. Otherwise we let the regularized gamma take the strain (the result is unlikely to underflow in the central region anyway) and combine with `lgamma` in the hopes that we get a finite result.
733
736
*
734
737
* @param {NonNegativeNumber} x - function parameter
0 commit comments