1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
3 * This file is a part of LEMON, a generic C++ optimization library.
5 * Copyright (C) 2003-2009
6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
7 * (Egervary Research Group on Combinatorial Optimization, EGRES).
9 * Permission to use, modify and distribute this software is granted
10 * provided that this copyright notice appears in all copies. For
11 * precise terms see the accompanying LICENSE file.
13 * This software is provided "AS IS" with no warranty of any kind,
14 * express or implied, and with no claim as to its suitability for any
24 ///\brief Some extensions to the standard \c cmath library.
26 ///Some extensions to the standard \c cmath library.
28 ///This file includes the standard math library (cmath).
37 /// The Euler constant
38 const long double E = 2.7182818284590452353602874713526625L;
40 const long double LOG2E = 1.4426950408889634073599246810018921L;
42 const long double LOG10E = 0.4342944819032518276511289189166051L;
44 const long double LN2 = 0.6931471805599453094172321214581766L;
46 const long double LN10 = 2.3025850929940456840179914546843642L;
48 const long double PI = 3.1415926535897932384626433832795029L;
50 const long double PI_2 = 1.5707963267948966192313216916397514L;
52 const long double PI_4 = 0.7853981633974483096156608458198757L;
54 const long double SQRT2 = 1.4142135623730950488016887242096981L;
56 const long double SQRT1_2 = 0.7071067811865475244008443621048490L;
58 ///Check whether the parameter is NaN or not
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)
72 #endif //LEMON_TOLERANCE_H