#include <constants.hpp>
Static Public Member Functions | |
static const eT | pi () |
ratio of any circle's circumference to its diameter | |
static const eT | e () |
base of the natural logarithm | |
static const eT | euler () |
Euler's constant, aka Euler-Mascheroni constant. | |
static const eT | gratio () |
golden ratio | |
static const eT | sqrt2 () |
square root of 2 | |
static const eT | eps () |
the difference between 1 and the least value greater than 1 that is representable | |
static const eT | log_min () |
log of the minimum representable value | |
static const eT | log_max () |
log of the maximum representable value |
Definition at line 24 of file constants.hpp.
static const eT Math< eT >::pi | ( | ) | [inline, static] |
ratio of any circle's circumference to its diameter
Definition at line 29 of file constants.hpp.
static const eT Math< eT >::e | ( | ) | [inline, static] |
base of the natural logarithm
Definition at line 32 of file constants.hpp.
static const eT Math< eT >::euler | ( | ) | [inline, static] |
Euler's constant, aka Euler-Mascheroni constant.
Definition at line 35 of file constants.hpp.
static const eT Math< eT >::gratio | ( | ) | [inline, static] |
golden ratio
Definition at line 38 of file constants.hpp.
static const eT Math< eT >::sqrt2 | ( | ) | [inline, static] |
square root of 2
Definition at line 41 of file constants.hpp.
static const eT Math< eT >::eps | ( | ) | [inline, static] |
the difference between 1 and the least value greater than 1 that is representable
Definition at line 44 of file constants.hpp.
static const eT Math< eT >::log_min | ( | ) | [inline, static] |
log of the minimum representable value
Definition at line 47 of file constants.hpp.
Referenced by trunc_log().
00047 { static const eT out = std::log(std::numeric_limits<eT>::min()); return out; }
static const eT Math< eT >::log_max | ( | ) | [inline, static] |
log of the maximum representable value
Definition at line 50 of file constants.hpp.
Referenced by trunc_log().
00050 { static const eT out = std::log(std::numeric_limits<eT>::max()); return out; }