This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: predefined TINY ?


Dan, Ho-Jin writes:
 > Is there a predefined TINY number in gsl?
 > In my code, TINY is used for checking small number
 > for example, in order to prevent divide by zero (ad hoc TINY=1.e-15)
 > do I just use the mechanism GSL_POSINF et cetera?
 > 
 > if (fabs(a-b) < TINY) {
 > ...

Hi,
The header file gsl_machine.h should have all the constants you need,
or just use the standard C constants like DBL_EPSILON.

Brian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]