missing/erf.c File Reference

#include "ruby/missing.h"
#include <stdio.h>
#include <math.h>
#include <float.h>

Go to the source code of this file.

Defines

#define isinf(x)   (!_finite(x) && !_isnan(x))
#define finite(x)   _finite(x)
#define LOG_PI_OVER_2   0.572364942924700087071713675675

Functions

static double q_gamma (double, double, double)
static double p_gamma (double a, double x, double loggamma_a)
double erf (double x)
double erfc (double x)

Define Documentation

#define finite (  )     _finite(x)

Definition at line 20 of file erf.c.

Referenced by erf(), erfc(), and flo_is_finite_p().

#define isinf (  )     (!_finite(x) && !_isnan(x))
#define LOG_PI_OVER_2   0.572364942924700087071713675675

Definition at line 69 of file erf.c.

Referenced by erf(), and erfc().


Function Documentation

double erf ( double  x  ) 

Definition at line 71 of file erf.c.

References finite, isnan, LOG_PI_OVER_2, and p_gamma().

Referenced by math_erf().

double erfc ( double  x  ) 

Definition at line 81 of file erf.c.

References finite, isnan, LOG_PI_OVER_2, p_gamma(), and q_gamma().

Referenced by math_erfc().

static double p_gamma ( double  a,
double  x,
double  loggamma_a 
) [static]

Definition at line 29 of file erf.c.

References q_gamma(), result, and term.

Referenced by erf(), erfc(), and q_gamma().

static double q_gamma ( double  a,
double  x,
double  loggamma_a 
) [static]

Definition at line 48 of file erf.c.

References p_gamma(), and result.

Referenced by erfc(), and p_gamma().


Generated on 1 Aug 2012 for Ruby by  doxygen 1.6.1