Embedded Artistry Framework
Embedded Systems C++ Framework
Functions | Variables
s_erf.c File Reference
#include "cdefs-compat.h"
#include <openlibm_math.h>
#include "math_private.h"
Include dependency graph for s_erf.c:

Functions

OLM_DLLEXPORT double erf (double x)
 
OLM_DLLEXPORT double erfc (double x)
 

Variables

static const double tiny = 1e-300
 
static const double half = 5.00000000000000000000e-01
 
static const double one = 1.00000000000000000000e+00
 
static const double two = 2.00000000000000000000e+00
 
static const double erx = 8.45062911510467529297e-01
 
static const double efx = 1.28379167095512586316e-01
 
static const double efx8 = 1.02703333676410069053e+00
 
static const double pp0 = 1.28379167095512558561e-01
 
static const double pp1 = -3.25042107247001499370e-01
 
static const double pp2 = -2.84817495755985104766e-02
 
static const double pp3 = -5.77027029648944159157e-03
 
static const double pp4 = -2.37630166566501626084e-05
 
static const double qq1 = 3.97917223959155352819e-01
 
static const double qq2 = 6.50222499887672944485e-02
 
static const double qq3 = 5.08130628187576562776e-03
 
static const double qq4 = 1.32494738004321644526e-04
 
static const double qq5 = -3.96022827877536812320e-06
 
static const double pa0 = -2.36211856075265944077e-03
 
static const double pa1 = 4.14856118683748331666e-01
 
static const double pa2 = -3.72207876035701323847e-01
 
static const double pa3 = 3.18346619901161753674e-01
 
static const double pa4 = -1.10894694282396677476e-01
 
static const double pa5 = 3.54783043256182359371e-02
 
static const double pa6 = -2.16637559486879084300e-03
 
static const double qa1 = 1.06420880400844228286e-01
 
static const double qa2 = 5.40397917702171048937e-01
 
static const double qa3 = 7.18286544141962662868e-02
 
static const double qa4 = 1.26171219808761642112e-01
 
static const double qa5 = 1.36370839120290507362e-02
 
static const double qa6 = 1.19844998467991074170e-02
 
static const double ra0 = -9.86494403484714822705e-03
 
static const double ra1 = -6.93858572707181764372e-01
 
static const double ra2 = -1.05586262253232909814e+01
 
static const double ra3 = -6.23753324503260060396e+01
 
static const double ra4 = -1.62396669462573470355e+02
 
static const double ra5 = -1.84605092906711035994e+02
 
static const double ra6 = -8.12874355063065934246e+01
 
static const double ra7 = -9.81432934416914548592e+00
 
static const double sa1 = 1.96512716674392571292e+01
 
static const double sa2 = 1.37657754143519042600e+02
 
static const double sa3 = 4.34565877475229228821e+02
 
static const double sa4 = 6.45387271733267880336e+02
 
static const double sa5 = 4.29008140027567833386e+02
 
static const double sa6 = 1.08635005541779435134e+02
 
static const double sa7 = 6.57024977031928170135e+00
 
static const double sa8 = -6.04244152148580987438e-02
 
static const double rb0 = -9.86494292470009928597e-03
 
static const double rb1 = -7.99283237680523006574e-01
 
static const double rb2 = -1.77579549177547519889e+01
 
static const double rb3 = -1.60636384855821916062e+02
 
static const double rb4 = -6.37566443368389627722e+02
 
static const double rb5 = -1.02509513161107724954e+03
 
static const double rb6 = -4.83519191608651397019e+02
 
static const double sb1 = 3.03380607434824582924e+01
 
static const double sb2 = 3.25792512996573918826e+02
 
static const double sb3 = 1.53672958608443695994e+03
 
static const double sb4 = 3.19985821950859553908e+03
 
static const double sb5 = 2.55305040643316442583e+03
 
static const double sb6 = 4.74528541206955367215e+02
 
static const double sb7 = -2.24409524465858183362e+01
 

Function Documentation

◆ erf()

OLM_DLLEXPORT double erf ( double  x)

References __ieee754_exp(), efx, efx8, erx, fabs(), GET_HIGH_WORD, one, P, pa0, pa1, pa2, pa3, pa4, pa5, pa6, pp0, pp1, pp2, pp3, pp4, Q, qa1, qa2, qa3, qa4, qa5, qa6, qq1, qq2, qq3, qq4, qq5, r, R, ra0, ra1, ra2, ra3, ra4, ra5, ra6, ra7, rb0, rb1, rb2, rb3, rb4, rb5, rb6, s, S, sa1, sa2, sa3, sa4, sa5, sa6, sa7, sa8, sb1, sb2, sb3, sb4, sb5, sb6, sb7, SET_LOW_WORD, tiny, and z.

Referenced by erf_test().

Here is the caller graph for this function:

◆ erfc()

OLM_DLLEXPORT double erfc ( double  x)

References __ieee754_exp(), erx, fabs(), GET_HIGH_WORD, half, one, P, pa0, pa1, pa2, pa3, pa4, pa5, pa6, pp0, pp1, pp2, pp3, pp4, Q, qa1, qa2, qa3, qa4, qa5, qa6, qq1, qq2, qq3, qq4, qq5, r, R, ra0, ra1, ra2, ra3, ra4, ra5, ra6, ra7, rb0, rb1, rb2, rb3, rb4, rb5, rb6, s, S, sa1, sa2, sa3, sa4, sa5, sa6, sa7, sa8, sb1, sb2, sb3, sb4, sb5, sb6, sb7, SET_LOW_WORD, tiny, two, and z.

Referenced by erfc_test().

Here is the caller graph for this function:

Variable Documentation

◆ efx

const double efx = 1.28379167095512586316e-01
static

Referenced by erf().

◆ efx8

const double efx8 = 1.02703333676410069053e+00
static

Referenced by erf().

◆ erx

const double erx = 8.45062911510467529297e-01
static

Referenced by erf(), and erfc().

◆ half

const double half = 5.00000000000000000000e-01
static

Referenced by erfc().

◆ one

const double one = 1.00000000000000000000e+00
static

Referenced by erf(), and erfc().

◆ pa0

const double pa0 = -2.36211856075265944077e-03
static

Referenced by erf(), and erfc().

◆ pa1

const double pa1 = 4.14856118683748331666e-01
static

Referenced by erf(), and erfc().

◆ pa2

const double pa2 = -3.72207876035701323847e-01
static

Referenced by erf(), and erfc().

◆ pa3

const double pa3 = 3.18346619901161753674e-01
static

Referenced by erf(), and erfc().

◆ pa4

const double pa4 = -1.10894694282396677476e-01
static

Referenced by erf(), and erfc().

◆ pa5

const double pa5 = 3.54783043256182359371e-02
static

Referenced by erf(), and erfc().

◆ pa6

const double pa6 = -2.16637559486879084300e-03
static

Referenced by erf(), and erfc().

◆ pp0

const double pp0 = 1.28379167095512558561e-01
static

Referenced by erf(), and erfc().

◆ pp1

const double pp1 = -3.25042107247001499370e-01
static

Referenced by erf(), and erfc().

◆ pp2

const double pp2 = -2.84817495755985104766e-02
static

Referenced by erf(), and erfc().

◆ pp3

const double pp3 = -5.77027029648944159157e-03
static

Referenced by erf(), and erfc().

◆ pp4

const double pp4 = -2.37630166566501626084e-05
static

Referenced by erf(), and erfc().

◆ qa1

const double qa1 = 1.06420880400844228286e-01
static

Referenced by erf(), and erfc().

◆ qa2

const double qa2 = 5.40397917702171048937e-01
static

Referenced by erf(), and erfc().

◆ qa3

const double qa3 = 7.18286544141962662868e-02
static

Referenced by erf(), and erfc().

◆ qa4

const double qa4 = 1.26171219808761642112e-01
static

Referenced by erf(), and erfc().

◆ qa5

const double qa5 = 1.36370839120290507362e-02
static

Referenced by erf(), and erfc().

◆ qa6

const double qa6 = 1.19844998467991074170e-02
static

Referenced by erf(), and erfc().

◆ qq1

const double qq1 = 3.97917223959155352819e-01
static

Referenced by erf(), and erfc().

◆ qq2

const double qq2 = 6.50222499887672944485e-02
static

Referenced by erf(), and erfc().

◆ qq3

const double qq3 = 5.08130628187576562776e-03
static

Referenced by erf(), and erfc().

◆ qq4

const double qq4 = 1.32494738004321644526e-04
static

Referenced by erf(), and erfc().

◆ qq5

const double qq5 = -3.96022827877536812320e-06
static

Referenced by erf(), and erfc().

◆ ra0

const double ra0 = -9.86494403484714822705e-03
static

Referenced by erf(), and erfc().

◆ ra1

const double ra1 = -6.93858572707181764372e-01
static

Referenced by erf(), and erfc().

◆ ra2

const double ra2 = -1.05586262253232909814e+01
static

Referenced by erf(), and erfc().

◆ ra3

const double ra3 = -6.23753324503260060396e+01
static

Referenced by erf(), and erfc().

◆ ra4

const double ra4 = -1.62396669462573470355e+02
static

Referenced by erf(), and erfc().

◆ ra5

const double ra5 = -1.84605092906711035994e+02
static

Referenced by erf(), and erfc().

◆ ra6

const double ra6 = -8.12874355063065934246e+01
static

Referenced by erf(), and erfc().

◆ ra7

const double ra7 = -9.81432934416914548592e+00
static

Referenced by erf(), and erfc().

◆ rb0

const double rb0 = -9.86494292470009928597e-03
static

Referenced by erf(), and erfc().

◆ rb1

const double rb1 = -7.99283237680523006574e-01
static

Referenced by erf(), and erfc().

◆ rb2

const double rb2 = -1.77579549177547519889e+01
static

Referenced by erf(), and erfc().

◆ rb3

const double rb3 = -1.60636384855821916062e+02
static

Referenced by erf(), and erfc().

◆ rb4

const double rb4 = -6.37566443368389627722e+02
static

Referenced by erf(), and erfc().

◆ rb5

const double rb5 = -1.02509513161107724954e+03
static

Referenced by erf(), and erfc().

◆ rb6

const double rb6 = -4.83519191608651397019e+02
static

Referenced by erf(), and erfc().

◆ sa1

const double sa1 = 1.96512716674392571292e+01
static

Referenced by erf(), and erfc().

◆ sa2

const double sa2 = 1.37657754143519042600e+02
static

Referenced by erf(), and erfc().

◆ sa3

const double sa3 = 4.34565877475229228821e+02
static

Referenced by erf(), and erfc().

◆ sa4

const double sa4 = 6.45387271733267880336e+02
static

Referenced by erf(), and erfc().

◆ sa5

const double sa5 = 4.29008140027567833386e+02
static

Referenced by erf(), and erfc().

◆ sa6

const double sa6 = 1.08635005541779435134e+02
static

Referenced by erf(), and erfc().

◆ sa7

const double sa7 = 6.57024977031928170135e+00
static

Referenced by erf(), and erfc().

◆ sa8

const double sa8 = -6.04244152148580987438e-02
static

Referenced by erf(), and erfc().

◆ sb1

const double sb1 = 3.03380607434824582924e+01
static

Referenced by erf(), and erfc().

◆ sb2

const double sb2 = 3.25792512996573918826e+02
static

Referenced by erf(), and erfc().

◆ sb3

const double sb3 = 1.53672958608443695994e+03
static

Referenced by erf(), and erfc().

◆ sb4

const double sb4 = 3.19985821950859553908e+03
static

Referenced by erf(), and erfc().

◆ sb5

const double sb5 = 2.55305040643316442583e+03
static

Referenced by erf(), and erfc().

◆ sb6

const double sb6 = 4.74528541206955367215e+02
static

Referenced by erf(), and erfc().

◆ sb7

const double sb7 = -2.24409524465858183362e+01
static

Referenced by erf(), and erfc().

◆ tiny

const double tiny = 1e-300
static

Referenced by erf(), and erfc().

◆ two

const double two = 2.00000000000000000000e+00
static

Referenced by erfc().