ENSDF++ 1.1
An easy, fast and simple way to run querys towards the ENSDF database, written in C++.
DoubleMath.h
Go to the documentation of this file.
00001 
00006 #ifndef MATH_H
00007 #define MATH_H //!<Inclusion guard
00008 #include <math.h>
00009 #endif
00010 
00011 #ifndef DOUBLEMATH_H
00012 #define DOUBLEMATH_H //!<Inclusion guard.
00013 
00014 inline bool doubleEquality(double d1, 
00015                            double d2, 
00016                            double eps = 1E-9 
00017                            ) 
00018 {
00019   if((d1+d2)!=0)
00020     return fabs(d1-d2)/(fabs(d1+d2))<=eps;
00021   else
00022     return (d1-d2)==0;
00023 }
00024 
00025 #endif
 All Classes Files Functions Variables Enumerations Enumerator Defines

Back to the main page of the Precalibrated Ion Beam Identification Detector project

Created by Rikard Lundmark