olena: olena-2.0-650-g42bdd44 Set mln::math::pi to 20 decimals.

* mln/math/pi.hh (mln::math::pi): Here. Use the value of the M_PI macro from glibc's math.h header. --- milena/ChangeLog | 7 +++++++ milena/mln/math/pi.hh | 10 ++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/milena/ChangeLog b/milena/ChangeLog index 8e8dbcc..45d0a38 100644 --- a/milena/ChangeLog +++ b/milena/ChangeLog @@ -1,5 +1,12 @@ 2013-08-27 Roland Levillain <roland@lrde.epita.fr> + Set mln::math::pi to 20 decimals. + + * mln/math/pi.hh (mln::math::pi): Here. + Use the value of the M_PI macro from glibc's math.h header. + +2013-08-27 Roland Levillain <roland@lrde.epita.fr> + Display Milena fatal errors on std::cerr, not std::cout. * mln/io/pdf/load.hh, diff --git a/milena/mln/math/pi.hh b/milena/mln/math/pi.hh index b056bc6..bcd43fd 100644 --- a/milena/mln/math/pi.hh +++ b/milena/mln/math/pi.hh @@ -1,4 +1,4 @@ -// Copyright (C) 2009, 2010, 2012 EPITA Research and Development +// Copyright (C) 2009, 2010, 2012, 2013 EPITA Research and Development // Laboratory (LRDE) // // This file is part of Olena. @@ -33,17 +33,15 @@ namespace mln namespace math { - /*! \brief The number Pi. - 19 decimals. - \ingroup mlnmath - */ + /// \brief The Pi constant (20-decimal double constant). + /// \ingroup mlnmath extern const double pi; # ifndef MLN_INCLUDE_ONLY # ifndef MLN_WO_GLOBAL_VARS - const double pi = 3.1415926535897932385; + const double pi = 3.14159265358979323846; # endif // ! MLN_WO_GLOBAL_VARS -- 1.7.10.4
participants (1)
-
Roland Levillain