1 #ifndef MATH_CONSTANTS_H_INCLUDED
2 #define MATH_CONSTANTS_H_INCLUDED
23 #include <type_traits>
29 inline constexpr
double pi() {
return 3.14159265358979323846264338327950288L; }
32 inline constexpr
double two_pi() {
return 2.0L * 3.14159265358979323846264338327950288L; }
35 inline constexpr
double small_real() {
return std::numeric_limits<float>::min(); }
40 #endif // end_of_include_guard
constexpr double small_real()
Small real number.
Namespace for the core simulator.
constexpr double two_pi()
Math constant 2*pi.
constexpr double pi()
Math constant pi.