Antkeeper
0.0.1
|
Mathematical constants. More...
Variables | |
template<class T > | |
constexpr T | inf = std::numeric_limits<T>::infinity() |
Positive infinity. More... | |
template<class T > | |
constexpr T | e = std::numbers::e_v<T> |
e. More... | |
template<class T > | |
constexpr T | log2_e = std::numbers::log2e_v<T> |
log2(e). More... | |
template<class T > | |
constexpr T | log10_e = std::numbers::log10e_v<T> |
log10(e). More... | |
template<class T > | |
constexpr T | pi = std::numbers::pi_v<T> |
Pi. More... | |
template<class T > | |
constexpr T | two_pi = pi<T> * T{2} |
Pi * 2. More... | |
template<class T > | |
constexpr T | four_pi = pi<T> * T{4} |
Pi * 4. More... | |
template<class T > | |
constexpr T | half_pi = pi<T> / T{2} |
Pi / 2. More... | |
template<class T > | |
constexpr T | inv_pi = std::numbers::inv_pi_v<T> |
1 / Pi. More... | |
template<class T > | |
constexpr T | inv_sqrt_pi = std::numbers::inv_sqrtpi_v<T> |
1 / sqrt(Pi). More... | |
template<class T > | |
constexpr T | sqr_pi = std::numbers::pi_v<T> * std::numbers::pi_v<T> |
Pi^2. More... | |
template<class T > | |
constexpr T | ln_2 = std::numbers::ln2_v<T> |
ln(2). More... | |
template<class T > | |
constexpr T | ln_10 = std::numbers::ln10_v<T> |
ln(10). More... | |
template<class T > | |
constexpr T | sqrt_half = T{0.70710678118654752440084436210485} |
sqrt(0.5) More... | |
template<class T > | |
constexpr T | sqrt_2 = std::numbers::sqrt2_v<T> |
sqrt(2) More... | |
template<class T > | |
constexpr T | sqrt_3 = std::numbers::sqrt3_v<T> |
sqrt(3) More... | |
template<class T > | |
constexpr T | inv_sqrt_3 = std::numbers::inv_sqrt3_v<T> |
1 / sqrt(3) More... | |
template<class T > | |
constexpr T | sqrt_5 = T{2.2360679774997896964091736687313} |
sqrt(5) More... | |
template<class T > | |
constexpr T | egamma = std::numbers::egamma_v<T> |
Euler–Mascheroni constant. More... | |
template<class T > | |
constexpr T | phi = std::numbers::phi_v<T> |
Golden ratio constant. More... | |
template<class T > | |
constexpr T | deg2rad = pi<T> / T{180} |
Degrees-to-radians conversion factor. More... | |
template<class T > | |
constexpr T | rad2deg = T{180} / pi<T> |
Radians-to-degrees conversion factor. More... | |
Mathematical constants.
|
inlineconstexpr |
Degrees-to-radians conversion factor.
Definition at line 113 of file numbers.hpp.
|
inlineconstexpr |
e.
Definition at line 37 of file numbers.hpp.
|
inlineconstexpr |
Euler–Mascheroni constant.
Definition at line 105 of file numbers.hpp.
|
inlineconstexpr |
Pi * 4.
Definition at line 57 of file numbers.hpp.
|
inlineconstexpr |
Pi / 2.
Definition at line 61 of file numbers.hpp.
|
inlineconstexpr |
Positive infinity.
Definition at line 33 of file numbers.hpp.
|
inlineconstexpr |
1 / Pi.
Definition at line 65 of file numbers.hpp.
|
inlineconstexpr |
1 / sqrt(3)
Definition at line 97 of file numbers.hpp.
|
inlineconstexpr |
1 / sqrt(Pi).
Definition at line 69 of file numbers.hpp.
|
inlineconstexpr |
ln(10).
Definition at line 81 of file numbers.hpp.
|
inlineconstexpr |
ln(2).
Definition at line 77 of file numbers.hpp.
|
inlineconstexpr |
log10(e).
Definition at line 45 of file numbers.hpp.
|
inlineconstexpr |
log2(e).
Definition at line 41 of file numbers.hpp.
|
inlineconstexpr |
Golden ratio constant.
Definition at line 109 of file numbers.hpp.
|
inlineconstexpr |
Pi.
Definition at line 49 of file numbers.hpp.
|
inlineconstexpr |
Radians-to-degrees conversion factor.
Definition at line 117 of file numbers.hpp.
|
inlineconstexpr |
Pi^2.
Definition at line 73 of file numbers.hpp.
|
inlineconstexpr |
sqrt(2)
Definition at line 89 of file numbers.hpp.
|
inlineconstexpr |
sqrt(3)
Definition at line 93 of file numbers.hpp.
|
inlineconstexpr |
sqrt(5)
Definition at line 101 of file numbers.hpp.
|
inlineconstexpr |
sqrt(0.5)
Definition at line 85 of file numbers.hpp.
|
inlineconstexpr |
Pi * 2.
Definition at line 53 of file numbers.hpp.