Changeset 470:81627fa1b007 in lemon-1.2 for lemon/math.h
- Timestamp:
- 01/14/09 16:55:29 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/math.h
r440 r470 56 56 const long double SQRT1_2 = 0.7071067811865475244008443621048490L; 57 57 58 ///Check whether the parameter is NaN or not 59 60 ///This function checks whether the parameter is NaN or not. 61 ///Is should be equivalent with std::isnan(), but it is not 62 ///provided by all compilers. 63 inline bool isnan(double v) 64 { 65 return v!=v; 66 } 58 67 59 68 /// @}
Note: See TracChangeset
for help on using the changeset viewer.