Documentation
¶
Overview ¶
Package mathx implements special functions not provided by the standard math package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BetaInc ¶
BetaInc returns the value of the regularized incomplete beta function Iₓ(a, b) = 1 / B(a, b) * ∫₀ˣ tᵃ⁻¹ (1-t)ᵇ⁻¹ dt.
This is not to be confused with the "incomplete beta function", which can be computed as BetaInc(x, a, b)*Beta(a, b).
If x < 0 or x > 1, returns NaN.
func GammaInc ¶
GammaInc returns the value of the incomplete gamma function (also known as the regularized gamma function):
P(a, x) = 1 / Γ(a) * ∫₀ˣ exp(-t) t**(a-1) dt
func GammaIncComp ¶
GammaIncComp returns the complement of the incomplete gamma function 1 - GammaInc(a, x). This is more numerically stable for values near 0.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.