14 #define is_nan(a) _isnan(a)
18 #define is_nan(a) std::isnan(a)
21 #if defined __cplusplus
70 if( sign < 0 )
return( -INFINITY );
115 void *
p = malloc( size );
117 if(
nfu_debugging )
printf(
"nfu_malloc %12p size = %8llu\n", p, (
long long unsigned) size );
125 void *
p = calloc( size, n );
127 if(
nfu_debugging )
printf(
"nfu_calloc %12p size = %8llu, n = %8llu\n", p, (
long long unsigned) size, (
long long unsigned) n );
135 void *
p = realloc( old, size );
137 if(
nfu_debugging )
printf(
"nfu_realloc %12p size = %8llu, old = %12p\n", p, (
long long unsigned) size, old );
158 va_start( args, fmt );
159 vfprintf( stderr, fmt, args );
160 fprintf( stderr,
"\n" );
170 va_start( args, fmt );
171 vfprintf( stderr, fmt, args );
172 fprintf( stderr,
"\n" );
175 exit( EXIT_FAILURE );
178 #if defined __cplusplus
static const char empty_message[]
static const char mallocError_message[]
double nfu_getInfinity(double sign)
static const char unsupportedInterpolation_message[]
static const char XNotAscending_message[]
void nfu_setMemoryDebugMode(int mode)
void nfu_printMsg(char *fmt,...)
static const char insufficientMemory_message[]
void * nfu_calloc(size_t size, size_t n)
static const char badIndex_message[]
static const char unsupportedInterpolationConversion_message[]
void nfu_printErrorMsg(char *fmt,...)
static const char tooFewPoints_message[]
enum nfu_status_e nfu_status
printf("%d Experimental points found\n", nlines)
static const char badSelf_message[]
static const char unknownStatus_message[]
static const char otherInterpolation_message[]
static const char XOutsideDomain_message[]
static const char Okay_message[]
static const char notMutualDomian_message[]
static const char divByZero_message[]
static const char badIntegrationInput_message[]
static const char failedToConverge_message[]
static const char invalidInterpolation_message[]
static const char badIndexForX_message[]
static const char badInput_message[]
void * nfu_realloc(size_t size, void *old)
static const char badNorm_message[]
const char * nfu_statusMessage(nfu_status status)
void * nfu_malloc(size_t size)
static const char oddNumberOfValues_message[]