Macros | Functions | Variables
dd_real.c File Reference
#include <float.h>
#include <limits.h>
#include <math.h>
#include <stdlib.h>
#include "dd_real.h"
Include dependency graph for dd_real.c:

Go to the source code of this file.

Macros

#define _DD_REAL_INIT(A, B)   {{A, B}}
 
#define LOG_MAX_VALUE   709.782712893384
 

Functions

void dd_error (const char *msg)
 
double2 dd_exp (const double2 a)
 
double2 dd_exp_d (const double a)
 
double2 dd_expm1 (const double2 x)
 
double2 dd_log (const double2 a)
 
double2 dd_log10 (const double2 a)
 
double2 dd_log1p (const double2 a)
 
double2 dd_log_d (double a)
 
double2 dd_npow (const double2 a, int n)
 
double2 dd_npwr (const double2 a, int n)
 
double2 dd_nroot (const double2 a, int n)
 
double2 dd_polyeval (const double2 *c, int n, const double2 x)
 
double2 dd_polyroot (const double2 *c, int n, const double2 x0, int max_iter, double thresh)
 
double2 dd_pow (const double2 a, const double2 b)
 
double2 dd_rand (void)
 
double2 dd_sqrt (const double2 a)
 
double2 dd_sqrt_d (double d)
 
static double2 expm1_rational_approx (const double2 x)
 
int get_double_expn (double x)
 

Variables

const int _DD_C_NDIGITS = 31
 
const double2 DD_C_2PI
 
const double2 DD_C_3PI4
 
const double2 DD_C_E
 
const double DD_C_EPS = 4.93038065763132e-32
 
const double2 DD_C_LOG10
 
const double2 DD_C_LOG2
 
const double2 DD_C_MAX
 
const double DD_C_MIN_NORMALIZED = 2.0041683600089728e-292
 
const double2 DD_C_NEGONE = _DD_REAL_INIT(-1.0, 0.0)
 
const double2 DD_C_ONE = _DD_REAL_INIT(1.0, 0.0)
 
const double2 DD_C_PI
 
const double2 DD_C_PI16
 
const double2 DD_C_PI2
 
const double2 DD_C_PI4
 
const double2 DD_C_SAFE_MAX
 
const double2 DD_C_ZERO = _DD_REAL_INIT(0.0, 0.0)
 
static volatile int errCount = 0
 
static const double2 expm1_denom []
 
static const double2 expm1_numer []
 
static const double2 inv_fact []
 

Macro Definition Documentation

◆ _DD_REAL_INIT

#define _DD_REAL_INIT (   A,
  B 
)    {{A, B}}

Definition at line 33 of file dd_real.c.

◆ LOG_MAX_VALUE

#define LOG_MAX_VALUE   709.782712893384

Definition at line 478 of file dd_real.c.

Function Documentation

◆ dd_error()

void dd_error ( const char *  msg)

Definition at line 80 of file dd_real.c.

◆ dd_exp()

double2 dd_exp ( const double2  a)

Definition at line 294 of file dd_real.c.

◆ dd_exp_d()

double2 dd_exp_d ( const double  a)

Definition at line 358 of file dd_real.c.

◆ dd_expm1()

double2 dd_expm1 ( const double2  x)

Definition at line 481 of file dd_real.c.

◆ dd_log()

double2 dd_log ( const double2  a)

Definition at line 367 of file dd_real.c.

◆ dd_log10()

double2 dd_log10 ( const double2  a)

Definition at line 422 of file dd_real.c.

◆ dd_log1p()

double2 dd_log1p ( const double2  a)

Definition at line 404 of file dd_real.c.

◆ dd_log_d()

double2 dd_log_d ( double  a)

Definition at line 428 of file dd_real.c.

◆ dd_npow()

double2 dd_npow ( const double2  a,
int  n 
)

Definition at line 257 of file dd_real.c.

◆ dd_npwr()

double2 dd_npwr ( const double2  a,
int  n 
)

Definition at line 219 of file dd_real.c.

◆ dd_nroot()

double2 dd_nroot ( const double2  a,
int  n 
)

Definition at line 166 of file dd_real.c.

◆ dd_polyeval()

double2 dd_polyeval ( const double2 c,
int  n,
const double2  x 
)

Definition at line 524 of file dd_real.c.

◆ dd_polyroot()

double2 dd_polyroot ( const double2 c,
int  n,
const double2  x0,
int  max_iter,
double  thresh 
)

Definition at line 544 of file dd_real.c.

◆ dd_pow()

double2 dd_pow ( const double2  a,
const double2  b 
)

Definition at line 263 of file dd_real.c.

◆ dd_rand()

double2 dd_rand ( void  )

Definition at line 498 of file dd_real.c.

◆ dd_sqrt()

double2 dd_sqrt ( const double2  a)

Definition at line 126 of file dd_real.c.

◆ dd_sqrt_d()

double2 dd_sqrt_d ( double  d)

Definition at line 156 of file dd_real.c.

◆ expm1_rational_approx()

static double2 expm1_rational_approx ( const double2  x)
static

Definition at line 465 of file dd_real.c.

◆ get_double_expn()

int get_double_expn ( double  x)

Definition at line 90 of file dd_real.c.

Variable Documentation

◆ _DD_C_NDIGITS

const int _DD_C_NDIGITS = 31

Definition at line 44 of file dd_real.c.

◆ DD_C_2PI

const double2 DD_C_2PI
Initial value:
=
_DD_REAL_INIT(6.283185307179586232e+00, 2.449293598294706414e-16)

Definition at line 50 of file dd_real.c.

◆ DD_C_3PI4

const double2 DD_C_3PI4
Initial value:
=
_DD_REAL_INIT(2.356194490192344837e+00, 9.1848509936051484375e-17)

Definition at line 60 of file dd_real.c.

◆ DD_C_E

const double2 DD_C_E
Initial value:
=
_DD_REAL_INIT(2.718281828459045091e+00, 1.445646891729250158e-16)

Definition at line 63 of file dd_real.c.

◆ DD_C_EPS

const double DD_C_EPS = 4.93038065763132e-32

Definition at line 35 of file dd_real.c.

◆ DD_C_LOG10

const double2 DD_C_LOG10
Initial value:
=
_DD_REAL_INIT(2.302585092994045901e+00, -2.170756223382249351e-16)

Definition at line 67 of file dd_real.c.

◆ DD_C_LOG2

const double2 DD_C_LOG2
Initial value:
=
_DD_REAL_INIT(6.931471805599452862e-01, 2.319046813846299558e-17)

Definition at line 65 of file dd_real.c.

◆ DD_C_MAX

const double2 DD_C_MAX
Initial value:
=
_DD_REAL_INIT(1.79769313486231570815e+308, 9.97920154767359795037e+291)

Definition at line 40 of file dd_real.c.

◆ DD_C_MIN_NORMALIZED

const double DD_C_MIN_NORMALIZED = 2.0041683600089728e-292

Definition at line 36 of file dd_real.c.

◆ DD_C_NEGONE

const double2 DD_C_NEGONE = _DD_REAL_INIT(-1.0, 0.0)

Definition at line 48 of file dd_real.c.

◆ DD_C_ONE

const double2 DD_C_ONE = _DD_REAL_INIT(1.0, 0.0)

Definition at line 47 of file dd_real.c.

◆ DD_C_PI

const double2 DD_C_PI
Initial value:
=
_DD_REAL_INIT(3.141592653589793116e+00, 1.224646799147353207e-16)

Definition at line 52 of file dd_real.c.

◆ DD_C_PI16

const double2 DD_C_PI16
Initial value:
=
_DD_REAL_INIT(1.963495408493620697e-01, 7.654042494670957545e-18)

Definition at line 58 of file dd_real.c.

◆ DD_C_PI2

const double2 DD_C_PI2
Initial value:
=
_DD_REAL_INIT(1.570796326794896558e+00, 6.123233995736766036e-17)

Definition at line 54 of file dd_real.c.

◆ DD_C_PI4

const double2 DD_C_PI4
Initial value:
=
_DD_REAL_INIT(7.853981633974482790e-01, 3.061616997868383018e-17)

Definition at line 56 of file dd_real.c.

◆ DD_C_SAFE_MAX

const double2 DD_C_SAFE_MAX
Initial value:
=
_DD_REAL_INIT(1.7976931080746007281e+308, 9.97920154767359795037e+291)

Definition at line 42 of file dd_real.c.

◆ DD_C_ZERO

const double2 DD_C_ZERO = _DD_REAL_INIT(0.0, 0.0)

Definition at line 46 of file dd_real.c.

◆ errCount

volatile int errCount = 0
static

Definition at line 78 of file dd_real.c.

◆ expm1_denom

const double2 expm1_denom[]
static
Initial value:
= {
{{1.0, 0.0}},
{{-0.4544126470907431, -2.2553855773661143e-17}},
{{0.09682713193619222, -4.961446925746919e-19}},
{{-0.012745248725908178, -6.0676821249478945e-19}},
{{0.001147361387158326, 1.3575817248483204e-20}},
{{-7.370416847725892e-05, 3.720369981570573e-21}},
{{3.4087499397791556e-06, -3.3067348191741576e-23}},
{{-1.1114024704296196e-07, -3.313361038199987e-24}},
{{2.3987051614110847e-09, 1.102474920537503e-25}},
{{-2.947734185911159e-11, -9.4795654767864e-28}},
{{1.32220659910223e-13, 6.440648413523595e-30}}
}

Definition at line 447 of file dd_real.c.

◆ expm1_numer

const double2 expm1_numer[]
static
Initial value:
= {
{{-0.028127670288085938, 1.46e-37}},
{{0.5127815691121048, -4.248816580490825e-17}},
{{-0.0632631785207471, 4.733650586348708e-18}},
{{0.01470328560687425, -4.57569727474415e-20}},
{{-0.0008675686051689528, 2.340010361165805e-20}},
{{8.812635961829116e-05, 2.619804163788941e-21}},
{{-2.596308786770631e-06, -1.6196413688647164e-22}},
{{1.422669108780046e-07, 1.2956999470135368e-23}},
{{-1.5995603306536497e-09, 5.185121944095551e-26}},
{{4.526182006900779e-11, -1.9856249941108077e-27}}
}

Definition at line 434 of file dd_real.c.

◆ inv_fact

const double2 inv_fact[]
static
Initial value:
= {
{{1.66666666666666657e-01, 9.25185853854297066e-18}},
{{4.16666666666666644e-02, 2.31296463463574266e-18}},
{{8.33333333333333322e-03, 1.15648231731787138e-19}},
{{1.38888888888888894e-03, -5.30054395437357706e-20}},
{{1.98412698412698413e-04, 1.72095582934207053e-22}},
{{2.48015873015873016e-05, 2.15119478667758816e-23}},
{{2.75573192239858925e-06, -1.85839327404647208e-22}},
{{2.75573192239858883e-07, 2.37677146222502973e-23}},
{{2.50521083854417202e-08, -1.44881407093591197e-24}},
{{2.08767569878681002e-09, -1.20734505911325997e-25}},
{{1.60590438368216133e-10, 1.25852945887520981e-26}},
{{1.14707455977297245e-11, 2.06555127528307454e-28}},
{{7.64716373181981641e-13, 7.03872877733453001e-30}},
{{4.77947733238738525e-14, 4.39920548583408126e-31}},
{{2.81145725434552060e-15, 1.65088427308614326e-31}}
}

Definition at line 272 of file dd_real.c.

e
Array< double, 1, 3 > e(1./3., 0.5, 2.)
_DD_REAL_INIT
#define _DD_REAL_INIT(A, B)
Definition: dd_real.c:33


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:46