LAL  7.5.0.1-ec27e42
LALConstantsTest.c File Reference

Prototypes

static int compare_within_fraction (double a, double b, double max_fractional_difference)
 
int main (void)
 

Go to the source code of this file.

Macros

#define MAX_FRACTIONAL_ERROR   1e-15
 
#define REQUIRE_EQUAL(a, b)
 

Macro Definition Documentation

◆ MAX_FRACTIONAL_ERROR

#define MAX_FRACTIONAL_ERROR   1e-15

Definition at line 26 of file LALConstantsTest.c.

◆ REQUIRE_EQUAL

#define REQUIRE_EQUAL (   a,
 
)
Value:
fprintf(stderr, #a " != " #b " within %g (" #a " = %.17g, " #b " = %.17g)\n", MAX_FRACTIONAL_ERROR, a, b); \
return 1; \
}
#define MAX_FRACTIONAL_ERROR
static int compare_within_fraction(double a, double b, double max_fractional_difference)
static const INT4 a
Definition: Random.c:79

Definition at line 36 of file LALConstantsTest.c.

Function Documentation

◆ compare_within_fraction()

static int compare_within_fraction ( double  a,
double  b,
double  max_fractional_difference 
)
static

Definition at line 28 of file LALConstantsTest.c.

◆ main()

int main ( void  )

Definition at line 42 of file LALConstantsTest.c.