Antkeeper
0.0.1
|
#include <limits>
#include <numbers>
Go to the source code of this file.
Namespaces | |
math | |
Mathematical functions and data types. | |
math::numbers | |
Mathematical constants. | |
Variables | |
template<class T > | |
constexpr T | math::numbers::inf = std::numeric_limits<T>::infinity() |
Positive infinity. More... | |
template<class T > | |
constexpr T | math::numbers::e = std::numbers::e_v<T> |
e. More... | |
template<class T > | |
constexpr T | math::numbers::log2_e = std::numbers::log2e_v<T> |
log2(e). More... | |
template<class T > | |
constexpr T | math::numbers::log10_e = std::numbers::log10e_v<T> |
log10(e). More... | |
template<class T > | |
constexpr T | math::numbers::pi = std::numbers::pi_v<T> |
Pi. More... | |
template<class T > | |
constexpr T | math::numbers::two_pi = pi<T> * T{2} |
Pi * 2. More... | |
template<class T > | |
constexpr T | math::numbers::four_pi = pi<T> * T{4} |
Pi * 4. More... | |
template<class T > | |
constexpr T | math::numbers::half_pi = pi<T> / T{2} |
Pi / 2. More... | |
template<class T > | |
constexpr T | math::numbers::inv_pi = std::numbers::inv_pi_v<T> |
1 / Pi. More... | |
template<class T > | |
constexpr T | math::numbers::inv_sqrt_pi = std::numbers::inv_sqrtpi_v<T> |
1 / sqrt(Pi). More... | |
template<class T > | |
constexpr T | math::numbers::sqr_pi = std::numbers::pi_v<T> * std::numbers::pi_v<T> |
Pi^2. More... | |
template<class T > | |
constexpr T | math::numbers::ln_2 = std::numbers::ln2_v<T> |
ln(2). More... | |
template<class T > | |
constexpr T | math::numbers::ln_10 = std::numbers::ln10_v<T> |
ln(10). More... | |
template<class T > | |
constexpr T | math::numbers::sqrt_half = T{0.70710678118654752440084436210485} |
sqrt(0.5) More... | |
template<class T > | |
constexpr T | math::numbers::sqrt_2 = std::numbers::sqrt2_v<T> |
sqrt(2) More... | |
template<class T > | |
constexpr T | math::numbers::sqrt_3 = std::numbers::sqrt3_v<T> |
sqrt(3) More... | |
template<class T > | |
constexpr T | math::numbers::inv_sqrt_3 = std::numbers::inv_sqrt3_v<T> |
1 / sqrt(3) More... | |
template<class T > | |
constexpr T | math::numbers::sqrt_5 = T{2.2360679774997896964091736687313} |
sqrt(5) More... | |
template<class T > | |
constexpr T | math::numbers::egamma = std::numbers::egamma_v<T> |
Euler–Mascheroni constant. More... | |
template<class T > | |
constexpr T | math::numbers::phi = std::numbers::phi_v<T> |
Golden ratio constant. More... | |
template<class T > | |
constexpr T | math::numbers::deg2rad = pi<T> / T{180} |
Degrees-to-radians conversion factor. More... | |
template<class T > | |
constexpr T | math::numbers::rad2deg = T{180} / pi<T> |
Radians-to-degrees conversion factor. More... | |