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 );
79 case nfu_Okay :
return( Okay_message );
101 return( unknownStatus_message );
108 nfu_debugging = mode;
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 );
146 if( nfu_debugging )
printf(
"nfu_free %12p\n", p );
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[]
void * nfu_realloc(size_t size, void *old)
static const char mallocError_message[]
static const char unsupportedInterpolation_message[]
static const char XNotAscending_message[]
printf("%d Experimental points found\, nlines)
static const char insufficientMemory_message[]
static const char badIndex_message[]
static const char unsupportedInterpolationConversion_message[]
void nfu_setMemoryDebugMode(int mode)
static const char tooFewPoints_message[]
enum nfu_status_e nfu_status
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[]
double nfu_getInfinity(double sign)
const char * nfu_statusMessage(nfu_status status)
static const char invalidInterpolation_message[]
static const char badIndexForX_message[]
static const char badInput_message[]
static const char badNorm_message[]
void nfu_printMsg(char *fmt,...)
void nfu_printErrorMsg(char *fmt,...)
void * nfu_calloc(size_t size, size_t n)
static const char oddNumberOfValues_message[]
void * nfu_malloc(size_t size)