#include <math.h>
Go to the source code of this file.
Defines | |
#define | ITMAX 100000 |
Maximum allowed number of iterations. | |
#define | EPS 3.0e-7 |
Relative accuracy. | |
#define | FPMIN 1.0e-30 |
Number near the smallest representable doubleing-point number. | |
Functions | |
double | gammln (double xx) |
Returns the value ln[?(xx)] for xx > 0. | |
double | gammp (double a, double x) |
Returns the incomplete gamma function P(a, x). | |
double | gammq (double a, double x) |
Returns the incomplete gamma function Q(a, x) ? 1 ? P(a, x). | |
void | gser (double *gamser, double a, double x, double *gln) |
Returns the incomplete gamma function P(a, x) evaluated by its series representation as gamser. Also returns ln ?(a) as gln. | |
void | gcf (double *gammcf, double a, double x, double *gln) |
Returns the incomplete gamma function Q(a, x) evaluated by its continued fraction representation as gammcf. Also returns ln?(a) as gln. | |
double | erf (double x) |
Returns the error function erf(x). |
Definition in file erf.h.
#define EPS 3.0e-7 |
#define FPMIN 1.0e-30 |
#define ITMAX 100000 |
double erf | ( | double | x | ) |
Returns the error function erf(x).
Definition at line 137 of file erf.cpp.
References gammp().
Referenced by DiffusionCoefficientParamStructure::Load_dxx_parameters().
double gammln | ( | double | xx | ) |
double gammp | ( | double | a, | |
double | x | |||
) |
double gammq | ( | double | a, | |
double | x | |||
) |
void gcf | ( | double * | gammcf, | |
double | a, | |||
double | x, | |||
double * | gln | |||
) |
Returns the incomplete gamma function Q(a, x) evaluated by its continued fraction representation as gammcf. Also returns ln?(a) as gln.
Definition at line 103 of file erf.cpp.
References EPS, FPMIN, gammln(), i, ITMAX, and nrerror().
Referenced by gammp(), and gammq().
void gser | ( | double * | gamser, | |
double | a, | |||
double | x, | |||
double * | gln | |||
) |
Returns the incomplete gamma function P(a, x) evaluated by its series representation as gamser. Also returns ln ?(a) as gln.
Definition at line 74 of file erf.cpp.
References EPS, gammln(), ITMAX, and nrerror().
Referenced by gammp(), and gammq().