ApasScript.

Special Functions

erf

The error function erf(x) = (2/sqrt(pi)) * integral of e^(-t^2) from 0 to x.

erfc

The complementary error function 1 - erf(x), accurate for large x.

inverseErfc

The x with erfc(x) = p, for 0 < p < 2.

logGamma

ln(Gamma(x)) for x > 0 -- the log of the gamma function, without overflow for large x.

regularizedGammaP

The regularized lower incomplete gamma function P(a, x).

regularizedGammaQ

The regularized upper incomplete gamma function Q(a, x) = 1 - P(a, x).

inverseRegularizedGammaP

The x with P(a, x) = p.

regularizedBeta

The regularized incomplete beta function I_x(a, b).

regularizedBetaComplement

1 - I_x(a, b), computed directly so it stays accurate near 1.

inverseRegularizedBeta

The x with I_x(a, b) = p.