COIN-OR::LEMON - Graph Library

Changeset 68:a315a588a20d in lemon-1.2


Ignore:
Timestamp:
02/07/08 23:25:42 (17 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

Some usefull math constants

lemon/math.h also includes the standard cmath, so one should prefer using
just lemon/math.h instead of cmath.

Location:
lemon
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • lemon/Makefile.am

    r58 r68  
    1818        lemon/dim2.h \
    1919        lemon/maps.h \
     20        lemon/math.h \
    2021        lemon/random.h \
    2122        lemon/list_graph.h \
  • lemon/random.h

    r62 r68  
    6868
    6969#include <ctime>
    70 #include <cmath>
    71 
     70
     71#include <lemon/math.h>
    7272#include <lemon/dim2.h>
     73
    7374///\ingroup misc
    7475///\file
     
    760761      double xi,nu;
    761762      const double delta = k-std::floor(k);
    762       const double v0=M_E/(M_E-delta);
     763      const double v0=E/(E-delta);
    763764      do {
    764765        double V0=1.0-real<double>();
Note: See TracChangeset for help on using the changeset viewer.