5 #ifndef BPP_NUMERIC_NUMCONSTANTS_H 6 #define BPP_NUMERIC_NUMCONSTANTS_H 36 static double MEGA() {
return 1e6; }
37 static double KILO() {
return 1e3; }
38 static double DECI() {
return 1e-1; }
39 static double CENTI() {
return 1e-2; }
40 static double MILLI() {
return 1e-3; }
41 static double MICRO() {
return 1e-6; }
42 static double NANO() {
return 1e-9; }
43 static double PICO() {
return 1e-12; }
45 static double SMALL() {
return 1e-6; }
46 static double TINY() {
return 1e-12; }
48 static double VERY_BIG() {
return static_cast<double>(1.7E+23); }
55 static double INF() {
return std::numeric_limits<double>::has_infinity ? -std::log(0) : std::numeric_limits<double>::max(); }
56 static double PINF() {
return std::numeric_limits<double>::has_infinity ? -std::log(0) : std::numeric_limits<double>::max(); }
57 static double MINF() {
return std::numeric_limits<double>::has_infinity ? std::log(0) : std::numeric_limits<double>::min(); }
58 static double NaN() {
return NAN; }
61 static double PI() {
return 3.141593; }
64 #endif // BPP_NUMERIC_NUMCONSTANTS_H this static class contains several useful constant values.
static double GOLDEN_RATIO_PHI()
static double VERY_TINY()
static double GOLDEN_RATIO_C()
static double GOLDEN_RATIO_R()