VERB_code_2.2  2
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
erf.cpp File Reference
#include <string>
#include "erf.h"
#include <iostream>

Go to the source code of this file.

Functions

bool str2bool (string str)
 Return bool from string (Yes|True|1) More...
 
string bool2str (bool b)
 Return string (Yes|No) from bool. More...
 
void nrerror (const char *msg)
 
double gammln (double xx)
 Returns the value ln[?(xx)] for xx > 0. More...
 
double gammp (double a, double x)
 Returns the incomplete gamma function P(a, x). More...
 
double gammq (double a, double x)
 Returns the incomplete gamma function Q(a, x) ? 1 ? P(a, x). More...
 
void gser (double *gamser, double a, double x, double *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. More...
 
double erf (double x)
 Returns the error function erf(x). More...
 

Detailed Description

Error function.

Author
Numerical Recepies.

Definition in file erf.cpp.

Function Documentation

bool str2bool ( string  str)

Return bool from string (Yes|True|1)

Converting string to boolean.

Definition at line 559 of file Parameters.cpp.

string bool2str ( bool  b)

Return string (Yes|No) from bool.

Converting boolean to string.

Definition at line 567 of file Parameters.cpp.

void nrerror ( const char *  msg)

Definition at line 17 of file erf.cpp.

double gammln ( double  xx)

Returns the value ln[?(xx)] for xx > 0.

Definition at line 23 of file erf.cpp.

double gammp ( double  a,
double  x 
)

Returns the incomplete gamma function P(a, x).

Definition at line 39 of file erf.cpp.

References gcf(), gser(), and nrerror().

double gammq ( double  a,
double  x 
)

Returns the incomplete gamma function Q(a, x) ? 1 ? P(a, x).

Definition at line 56 of file erf.cpp.

References gcf(), gser(), and nrerror().

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, VC::exp, gammln(), ITMAX, and nrerror().

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, VC::exp, FPMIN, gammln(), ITMAX, and nrerror().

double erf ( double  x)

Returns the error function erf(x).

Definition at line 137 of file erf.cpp.

References gammp().