return double |
|
double a |
|
double b |
Type SpecialFunctions
Namespace MathNet.Numerics
return double |
|
double a |
|
double b |
return double |
|
double a |
|
double b |
|
double x |
return double |
The binomial coefficient: n choose k. |
int n |
A nonnegative value n. |
int k |
A nonnegative value h. |
return double |
The logarithmic binomial coefficient: ln(n choose k). |
int n |
A nonnegative value n. |
int k |
A nonnegative value h. |
return double |
The value of the DiGamma function at x. |
double x |
The argument of the digamma function. |
return double |
the error function evaluated at given value. |
double x |
The value to evaluate. |
return double |
the complementary error function evaluated at given value. |
double x |
The value to evaluate. |
We have tested this implementation against the arbitrary precision mpmath library and found cases where we can only guarantee 9 significant figures correct.
return double |
The complementary inverse error function evaluated at given value. |
double z |
value to evaluate. |
x -> exp(x)-1
return double |
Returns exp(power)-1. |
double power |
A number specifying a power. |
If you need to multiply or divide various such factorials, consider using the logarithmic versionFactorialLn instead so you can add instead of multiply and subtract instead of divide, and then exponentiate the result using Exp. This will also circumvent the problem that factorials become very large even for small parameters.
return double |
A value value! for value > 0 |
int x |
return double |
A value value! for value > 0 |
int x |
This implementation of the computation of the gamma and logarithm of the gamma function follows the derivation in "An Analysis Of The Lanczos Gamma Approximation", Glendon Ralph Pugh, 2004. We use the implementation listed on p. 116 which should achieve an accuracy of 16 floating point digits. Although 16 digit accuracy should be sufficient for double values, improving accuracy is possible (see p. 126 in Pugh).
Our unit tests suggest that the accuracy of the Gamma function is correct up to 13 floating point digits.
return double |
The logarithm of the gamma function. |
double z |
The argument of the gamma function. |
This implementation of the computation of the gamma and logarithm of the gamma function follows the derivation in "An Analysis Of The Lanczos Gamma Approximation", Glendon Ralph Pugh, 2004. We use the implementation listed on p. 116 which achieves an accuracy of 16 floating point digits. Although 16 digit accuracy should be sufficient for double values, improving accuracy is possible (see p. 126 in Pugh).
Our unit tests suggest that the accuracy of the Gamma function is correct up to 14 floating point digits.
return double |
The logarithm of the gamma function. |
double z |
The argument of the gamma function. |
(a,b) -> sqrt(a^2 + b^2)
return double |
Returns sqrt(a2 + b2) without underflow/overflow. |
double a |
The length of side a of the triangle. |
double b |
The length of side b of the triangle. |
return double |
|
double x |
|
double z |
|
bool reg |