lemon/math.h
changeset 403 940587667b47
parent 68 a315a588a20d
child 440 88ed40ad0d4f
equal deleted inserted replaced
0:2dbbadeb86b2 1:f123d66e81ec
     1 /* -*- C++ -*-
     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-2008
     5  * Copyright (C) 2003-2008
     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  *
    31 
    31 
    32 namespace lemon {
    32 namespace lemon {
    33 
    33 
    34   /// \addtogroup misc
    34   /// \addtogroup misc
    35   /// @{
    35   /// @{
    36   
    36 
    37   /// The Euler constant
    37   /// The Euler constant
    38   const long double E       = 2.7182818284590452353602874713526625L;
    38   const long double E       = 2.7182818284590452353602874713526625L;
    39   /// log_2(e)
    39   /// log_2(e)
    40   const long double LOG2E   = 1.4426950408889634073599246810018921L;
    40   const long double LOG2E   = 1.4426950408889634073599246810018921L;
    41   /// log_10(e)
    41   /// log_10(e)
    52   const long double PI_4    = 0.7853981633974483096156608458198757L;
    52   const long double PI_4    = 0.7853981633974483096156608458198757L;
    53   /// sqrt(2)
    53   /// sqrt(2)
    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 
    58 
    59   /// @}
    59   /// @}
    60 
    60 
    61 } //namespace lemon
    61 } //namespace lemon
    62 
    62