GNU Octave  4.0.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 221 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 256 of file Faddeeva.cc.

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

#define NaN   (0./0.)

Definition at line 257 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 226 of file Faddeeva.cc.

Function Documentation

static cmplx cpolar ( double  r,
double  t 
)
inlinestatic

Definition at line 260 of file Faddeeva.cc.

References C.

Referenced by Faddeeva_w().

static double erfcx_y100 ( double  y100)
static

Definition at line 1013 of file Faddeeva.cc.

Referenced by Faddeeva_erfcx_re().

cmplx Faddeeva_Dawson ( cmplx  z,
double  relerr 
)

Definition at line 474 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 467 of file Faddeeva.cc.

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

cmplx Faddeeva_erf ( cmplx  z,
double  relerr 
)

Definition at line 312 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 280 of file Faddeeva.cc.

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

cmplx Faddeeva_erfc ( cmplx  z,
double  relerr 
)

Definition at line 433 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 418 of file Faddeeva.cc.

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

cmplx Faddeeva_erfcx ( cmplx  z,
double  relerr 
)

Definition at line 274 of file Faddeeva.cc.

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

double Faddeeva_erfcx_re ( double  x)

Definition at line 1422 of file Faddeeva.cc.

References erfcx_y100(), and x.

cmplx Faddeeva_erfi ( cmplx  z,
double  relerr 
)

Definition at line 404 of file Faddeeva.cc.

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

double Faddeeva_erfi_re ( double  x)

Definition at line 411 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 1864 of file Faddeeva.cc.

References w_im_y100(), and x.

static double sinc ( double  x,
double  sinx 
)
inlinestatic

Definition at line 609 of file Faddeeva.cc.

References x.

Referenced by Faddeeva_w().

static double sinh_taylor ( double  x)
inlinestatic

Definition at line 614 of file Faddeeva.cc.

References x.

Referenced by Faddeeva_w().

static double sqr ( double  x)
inlinestatic

Definition at line 619 of file Faddeeva.cc.

References x.

Referenced by Faddeeva_w().

static double w_im_y100 ( double  y100,
double  x 
)
static

Definition at line 1458 of file Faddeeva.cc.

References NaN, and x.

Referenced by Faddeeva_w_im().

Variable Documentation

const double expa2n2[]
static

Definition at line 623 of file Faddeeva.cc.