Antkeeper  0.0.1
Variables
math::numbers Namespace Reference

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...
 

Detailed Description

Mathematical constants.

Variable Documentation

◆ deg2rad

template<class T >
constexpr T math::numbers::deg2rad = pi<T> / T{180}
inlineconstexpr

Degrees-to-radians conversion factor.

Definition at line 113 of file numbers.hpp.

◆ e

template<class T >
constexpr T math::numbers::e = std::numbers::e_v<T>
inlineconstexpr

e.

Definition at line 37 of file numbers.hpp.

◆ egamma

template<class T >
constexpr T math::numbers::egamma = std::numbers::egamma_v<T>
inlineconstexpr

Euler–Mascheroni constant.

Definition at line 105 of file numbers.hpp.

◆ four_pi

template<class T >
constexpr T math::numbers::four_pi = pi<T> * T{4}
inlineconstexpr

Pi * 4.

Definition at line 57 of file numbers.hpp.

◆ half_pi

template<class T >
constexpr T math::numbers::half_pi = pi<T> / T{2}
inlineconstexpr

Pi / 2.

Definition at line 61 of file numbers.hpp.

◆ inf

template<class T >
constexpr T math::numbers::inf = std::numeric_limits<T>::infinity()
inlineconstexpr

Positive infinity.

Definition at line 33 of file numbers.hpp.

◆ inv_pi

template<class T >
constexpr T math::numbers::inv_pi = std::numbers::inv_pi_v<T>
inlineconstexpr

1 / Pi.

Definition at line 65 of file numbers.hpp.

◆ inv_sqrt_3

template<class T >
constexpr T math::numbers::inv_sqrt_3 = std::numbers::inv_sqrt3_v<T>
inlineconstexpr

1 / sqrt(3)

Definition at line 97 of file numbers.hpp.

◆ inv_sqrt_pi

template<class T >
constexpr T math::numbers::inv_sqrt_pi = std::numbers::inv_sqrtpi_v<T>
inlineconstexpr

1 / sqrt(Pi).

Definition at line 69 of file numbers.hpp.

◆ ln_10

template<class T >
constexpr T math::numbers::ln_10 = std::numbers::ln10_v<T>
inlineconstexpr

ln(10).

Definition at line 81 of file numbers.hpp.

◆ ln_2

template<class T >
constexpr T math::numbers::ln_2 = std::numbers::ln2_v<T>
inlineconstexpr

ln(2).

Definition at line 77 of file numbers.hpp.

◆ log10_e

template<class T >
constexpr T math::numbers::log10_e = std::numbers::log10e_v<T>
inlineconstexpr

log10(e).

Definition at line 45 of file numbers.hpp.

◆ log2_e

template<class T >
constexpr T math::numbers::log2_e = std::numbers::log2e_v<T>
inlineconstexpr

log2(e).

Definition at line 41 of file numbers.hpp.

◆ phi

template<class T >
constexpr T math::numbers::phi = std::numbers::phi_v<T>
inlineconstexpr

Golden ratio constant.

Definition at line 109 of file numbers.hpp.

◆ pi

template<class T >
constexpr T math::numbers::pi = std::numbers::pi_v<T>
inlineconstexpr

Pi.

Definition at line 49 of file numbers.hpp.

◆ rad2deg

template<class T >
constexpr T math::numbers::rad2deg = T{180} / pi<T>
inlineconstexpr

Radians-to-degrees conversion factor.

Definition at line 117 of file numbers.hpp.

◆ sqr_pi

template<class T >
constexpr T math::numbers::sqr_pi = std::numbers::pi_v<T> * std::numbers::pi_v<T>
inlineconstexpr

Pi^2.

Definition at line 73 of file numbers.hpp.

◆ sqrt_2

template<class T >
constexpr T math::numbers::sqrt_2 = std::numbers::sqrt2_v<T>
inlineconstexpr

sqrt(2)

Definition at line 89 of file numbers.hpp.

◆ sqrt_3

template<class T >
constexpr T math::numbers::sqrt_3 = std::numbers::sqrt3_v<T>
inlineconstexpr

sqrt(3)

Definition at line 93 of file numbers.hpp.

◆ sqrt_5

template<class T >
constexpr T math::numbers::sqrt_5 = T{2.2360679774997896964091736687313}
inlineconstexpr

sqrt(5)

Definition at line 101 of file numbers.hpp.

◆ sqrt_half

template<class T >
constexpr T math::numbers::sqrt_half = T{0.70710678118654752440084436210485}
inlineconstexpr

sqrt(0.5)

Definition at line 85 of file numbers.hpp.

◆ two_pi

template<class T >
constexpr T math::numbers::two_pi = pi<T> * T{2}
inlineconstexpr

Pi * 2.

Definition at line 53 of file numbers.hpp.