lemon/math.h
changeset 1047 f7247b5c04bf
parent 511 06787db0ef5f
child 1054 c40a9d94442d
equal deleted inserted replaced
4:5f5968056fc8 5:453968b5fa48
     1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
     1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
     2  *
     2  *
     3  * This file is a part of LEMON, a generic C++ optimization library.
     3  * This file is a part of LEMON, a generic C++ optimization library.
     4  *
     4  *
     5  * Copyright (C) 2003-2009
     5  * Copyright (C) 2003-2010
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     8  *
     8  *
     9  * Permission to use, modify and distribute this software is granted
     9  * Permission to use, modify and distribute this software is granted
    10  * provided that this copyright notice appears in all copies. For
    10  * provided that this copyright notice appears in all copies. For
    54   const long double SQRT2   = 1.4142135623730950488016887242096981L;
    54   const long double SQRT2   = 1.4142135623730950488016887242096981L;
    55   /// 1/sqrt(2)
    55   /// 1/sqrt(2)
    56   const long double SQRT1_2 = 0.7071067811865475244008443621048490L;
    56   const long double SQRT1_2 = 0.7071067811865475244008443621048490L;
    57 
    57 
    58   ///Check whether the parameter is NaN or not
    58   ///Check whether the parameter is NaN or not
    59   
    59 
    60   ///This function checks 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
    61   ///Is should be equivalent with std::isnan(), but it is not
    62   ///provided by all compilers.
    62   ///provided by all compilers.
    63   inline bool isNaN(double v)
    63   inline bool isNaN(double v)
    64     {
    64     {