GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Macros | Typedefs | Functions | Variables
Faddeeva.cc File Reference
#include "Faddeeva.h"
#include <float.h>
#include <math.h>
Include dependency graph for Faddeeva.cc:

Go to the source code of this file.

Macros

#define _GNU_SOURCE
#define C(a, b)   ((a) + I*(b))
#define FADDEEVA(name)   Faddeeva_ ## name
#define FADDEEVA_RE(name)   Faddeeva_ ## name ## _re
#define Inf   (1./0.)
#define NaN   (0./0.)
#define USE_CONTINUED_FRACTION   1

Typedefs

typedef double complex cmplx

Functions

static cmplx cpolar (double r, double t)
static double erfcx_y100 (double y100)
cmplx Faddeeva_Dawson (cmplx z, double relerr)
double Faddeeva_Dawson_re (double x)
cmplx Faddeeva_erf (cmplx z, double relerr)
double Faddeeva_erf_re (double x)
cmplx Faddeeva_erfc (cmplx z, double relerr)
double Faddeeva_erfc_re (double x)
cmplx Faddeeva_erfcx (cmplx z, double relerr)
double Faddeeva_erfcx_re (double x)
cmplx Faddeeva_erfi (cmplx z, double relerr)
double Faddeeva_erfi_re (double x)
cmplx Faddeeva_w (cmplx z, double relerr)
double Faddeeva_w_im (double x)
static double sinc (double x, double sinx)
static double sinh_taylor (double x)
static double sqr (double x)
static double w_im_y100 (double y100, double x)

Variables

static const double expa2n2 []

Macro Definition Documentation

#define _GNU_SOURCE

Definition at line 219 of file Faddeeva.cc.

#define C (   a,
 
)    ((a) + I*(b))
#define FADDEEVA (   name)    Faddeeva_ ## name
#define FADDEEVA_RE (   name)    Faddeeva_ ## name ## _re
#define Inf   (1./0.)

Definition at line 254 of file Faddeeva.cc.

Referenced by Faddeeva_erf(), Faddeeva_erfc(), Faddeeva_erfi_re(), and install_data_fcns().

#define NaN   (0./0.)

Definition at line 255 of file Faddeeva.cc.

Referenced by Faddeeva_Dawson(), Faddeeva_erf(), Faddeeva_w(), install_data_fcns(), and w_im_y100().

#define USE_CONTINUED_FRACTION   1

Typedef Documentation

typedef double complex cmplx

Definition at line 224 of file Faddeeva.cc.

Function Documentation

static cmplx cpolar ( double  r,
double  t 
)
inlinestatic

Definition at line 258 of file Faddeeva.cc.

References C.

Referenced by Faddeeva_w().

static double erfcx_y100 ( double  y100)
static

Definition at line 1011 of file Faddeeva.cc.

Referenced by Faddeeva_erfcx_re().

cmplx Faddeeva_Dawson ( cmplx  z,
double  relerr 
)

Definition at line 472 of file Faddeeva.cc.

References C, Faddeeva::erfcx(), FADDEEVA, FADDEEVA_RE, NaN, Faddeeva::w(), Faddeeva::w_im(), and x.

double Faddeeva_Dawson_re ( double  x)

Definition at line 465 of file Faddeeva.cc.

References FADDEEVA, Faddeeva::w_im(), and x.

cmplx Faddeeva_erf ( cmplx  z,
double  relerr 
)

Definition at line 310 of file Faddeeva.cc.

References C, Faddeeva::erf(), FADDEEVA, FADDEEVA_RE, Inf, NaN, Faddeeva::w(), Faddeeva::w_im(), and x.

double Faddeeva_erf_re ( double  x)

Definition at line 278 of file Faddeeva.cc.

References Faddeeva::erf(), Faddeeva::erfcx(), FADDEEVA_RE, and x.

cmplx Faddeeva_erfc ( cmplx  z,
double  relerr 
)

Definition at line 431 of file Faddeeva.cc.

References C, Faddeeva::erfcx(), FADDEEVA, FADDEEVA_RE, Inf, Faddeeva::w(), Faddeeva::w_im(), and x.

double Faddeeva_erfc_re ( double  x)

Definition at line 416 of file Faddeeva.cc.

References Faddeeva::erfc(), Faddeeva::erfcx(), FADDEEVA_RE, and x.

cmplx Faddeeva_erfcx ( cmplx  z,
double  relerr 
)

Definition at line 272 of file Faddeeva.cc.

References C, FADDEEVA, and Faddeeva::w().

double Faddeeva_erfcx_re ( double  x)

Definition at line 1420 of file Faddeeva.cc.

References erfcx_y100(), and x.

cmplx Faddeeva_erfi ( cmplx  z,
double  relerr 
)

Definition at line 402 of file Faddeeva.cc.

References C, Faddeeva::erf(), and FADDEEVA.

double Faddeeva_erfi_re ( double  x)

Definition at line 409 of file Faddeeva.cc.

References FADDEEVA, Inf, Faddeeva::w_im(), and x.

cmplx Faddeeva_w ( cmplx  z,
double  relerr 
)
double Faddeeva_w_im ( double  x)

Definition at line 1862 of file Faddeeva.cc.

References w_im_y100(), and x.

static double sinc ( double  x,
double  sinx 
)
inlinestatic

Definition at line 607 of file Faddeeva.cc.

References x.

Referenced by Faddeeva_w().

static double sinh_taylor ( double  x)
inlinestatic

Definition at line 612 of file Faddeeva.cc.

References x.

Referenced by Faddeeva_w().

static double sqr ( double  x)
inlinestatic

Definition at line 617 of file Faddeeva.cc.

References x.

Referenced by Faddeeva_w().

static double w_im_y100 ( double  y100,
double  x 
)
static

Definition at line 1456 of file Faddeeva.cc.

References NaN, and x.

Referenced by Faddeeva_w_im().

Variable Documentation

const double expa2n2[]
static

Definition at line 621 of file Faddeeva.cc.

Referenced by Faddeeva_w().