34 #ifndef _FINRESDYN_NUMBERPI_H_ 35 #define _FINRESDYN_NUMBERPI_H_ 39 #include "boost/numeric/interval.hpp" 47 template <
class numType>
71 template <
class numType>
79 template <
class numType>
87 template <
class numType>
90 template <
class numType>
98 theLowerPi = boost::numeric::interval_lib::constants::
100 theUpperPi = boost::numeric::interval_lib::constants::
108 theLowerPi = boost::numeric::interval_lib::constants::
110 theUpperPi = boost::numeric::interval_lib::constants::
118 volatile long double approxPi = 3.141592653589793238462643383279\
119 502884197169399375105820974944592307816406286208998628034825342117067\
120 982148086513282306647093844609550582231725359408128481117450284102701\
121 9385211055596446229489549303820L;
122 long double approxPi1 = approxPi;
124 long double approxPi2 = approxPi;
127 throw "Wrong rounding for pi.";
129 throw "Wrong lower bound for pi.";
131 throw "Wrong upper bound for pi.";
136 #endif // _FINRESDYN_NUMBERPI_H_ static numType theUpperPi
An upper bound for the number pi.
static numType theLowerPi
A lower bound for the number pi.
A class for rounding operations which uses the BOOST library.
static const numType & lowerBound()
A function that returns a lower bound for the number Pi.
A class that holds the number pi.
static const numType & upperBound()
A function that returns an upper bound for the number Pi.
static void computeBoundsForPi()
Computation of a lower and an upper bound for the number pi.