ToyGine2 26.2.0
Game Engine for retro consoles
Loading...
Searching...
No Matches
std::numbers Namespace Reference

Variables

template<typename Base, typename Intermediate, unsigned Fraction, bool Rounding>
constexpr toy::math::fixed< Base, Intermediate, Fraction, Rounding > e_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > > = toy::math::fixed<Base, Intermediate, Fraction, Rounding>(e_v<long double>)
 Variable template specializations of std::numbers for toy::math::fixed.
template<typename Base, typename Intermediate, unsigned Fraction, bool Rounding>
constexpr toy::math::fixed< Base, Intermediate, Fraction, Rounding > pi_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > > = toy::math::fixed<Base, Intermediate, Fraction, Rounding>(pi_v<long double>)
 The mathematical constant π (variable template).
template<typename Base, typename Intermediate, unsigned Fraction, bool Rounding>
constexpr toy::math::fixed< Base, Intermediate, Fraction, Rounding > log2e_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > > = toy::math::fixed<Base, Intermediate, Fraction, Rounding>(log2e_v<long double>)
 $ \log_2 e $ (variable template).
template<typename Base, typename Intermediate, unsigned Fraction, bool Rounding>
constexpr toy::math::fixed< Base, Intermediate, Fraction, Rounding > log10e_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > > = toy::math::fixed<Base, Intermediate, Fraction, Rounding>(log10e_v<long double>)
 $ \log_{10} e $ (variable template).
template<typename Base, typename Intermediate, unsigned Fraction, bool Rounding>
constexpr toy::math::fixed< Base, Intermediate, Fraction, Rounding > sqrt2_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > > = toy::math::fixed<Base, Intermediate, Fraction, Rounding>(sqrt2_v<long double>)
 $ \sqrt{2} $ (variable template).
template<typename Base, typename Intermediate, unsigned Fraction, bool Rounding>
constexpr toy::math::fixed< Base, Intermediate, Fraction, Rounding > sqrt3_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > > = toy::math::fixed<Base, Intermediate, Fraction, Rounding>(sqrt3_v<long double>)
 $ \sqrt{3} $ (variable template).
template<typename Base, typename Intermediate, unsigned Fraction, bool Rounding>
constexpr toy::math::fixed< Base, Intermediate, Fraction, Rounding > inv_pi_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > > = toy::math::fixed<Base, Intermediate, Fraction, Rounding>(inv_pi_v<long double>)
 $ 1/\pi $ (variable template).
template<typename Base, typename Intermediate, unsigned Fraction, bool Rounding>
constexpr toy::math::fixed< Base, Intermediate, Fraction, Rounding > inv_sqrtpi_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > > = toy::math::fixed<Base, Intermediate, Fraction, Rounding>(inv_sqrtpi_v<long double>)
 $ 1/\sqrt{\pi} $ (variable template).
template<typename Base, typename Intermediate, unsigned Fraction, bool Rounding>
constexpr toy::math::fixed< Base, Intermediate, Fraction, Rounding > ln2_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > > = toy::math::fixed<Base, Intermediate, Fraction, Rounding>(ln2_v<long double>)
 $ \ln 2 $ (variable template).
template<typename Base, typename Intermediate, unsigned Fraction, bool Rounding>
constexpr toy::math::fixed< Base, Intermediate, Fraction, Rounding > ln10_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > > = toy::math::fixed<Base, Intermediate, Fraction, Rounding>(ln10_v<long double>)
 $ \ln 10 $ (variable template).
template<typename Base, typename Intermediate, unsigned Fraction, bool Rounding>
constexpr toy::math::fixed< Base, Intermediate, Fraction, Rounding > egamma_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > > = toy::math::fixed<Base, Intermediate, Fraction, Rounding>(egamma_v<long double>)
 Euler–Mascheroni constant γ (variable template).
template<typename Base, typename Intermediate, unsigned Fraction, bool Rounding>
constexpr toy::math::fixed< Base, Intermediate, Fraction, Rounding > phi_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > > = toy::math::fixed<Base, Intermediate, Fraction, Rounding>(phi_v<long double>)
 Golden ratio Φ (variable template).

Variable Documentation

◆ e_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > >

template<typename Base, typename Intermediate, unsigned Fraction, bool Rounding>
toy::math::fixed<Base, Intermediate, Fraction, Rounding> std::numbers::e_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > > = toy::math::fixed<Base, Intermediate, Fraction, Rounding>(e_v<long double>)
inlineconstexpr

Variable template specializations of std::numbers for toy::math::fixed.

Values are computed in 61 fractional bits and scaled to the target Fraction via fromFixedPoint<61>. Analogous to the standard specializations for float, double, long double.

Constant Description
e_v The mathematical constant e
pi_v The mathematical constant π
log2e_v $ \log_2 e $
log10e_v $ \log_{10} e $
sqrt2_v $ \sqrt{2} $
sqrt3_v $ \sqrt{3} $
inv_pi_v $ 1/\pi $
inv_sqrtpi_v $ 1/\sqrt{\pi} $
ln2_v $ \ln 2 $
ln10_v $ \ln 10 $
egamma_v Euler–Mascheroni constant γ
phi_v Golden ratio Φ
See also
https://en.cppreference.com/w/cpp/numeric/constants The mathematical constant e (variable template).

◆ egamma_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > >

template<typename Base, typename Intermediate, unsigned Fraction, bool Rounding>
toy::math::fixed<Base, Intermediate, Fraction, Rounding> std::numbers::egamma_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > > = toy::math::fixed<Base, Intermediate, Fraction, Rounding>(egamma_v<long double>)
inlineconstexpr

Euler–Mascheroni constant γ (variable template).

◆ inv_pi_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > >

template<typename Base, typename Intermediate, unsigned Fraction, bool Rounding>
toy::math::fixed<Base, Intermediate, Fraction, Rounding> std::numbers::inv_pi_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > > = toy::math::fixed<Base, Intermediate, Fraction, Rounding>(inv_pi_v<long double>)
inlineconstexpr

$ 1/\pi $ (variable template).

◆ inv_sqrtpi_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > >

template<typename Base, typename Intermediate, unsigned Fraction, bool Rounding>
toy::math::fixed<Base, Intermediate, Fraction, Rounding> std::numbers::inv_sqrtpi_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > > = toy::math::fixed<Base, Intermediate, Fraction, Rounding>(inv_sqrtpi_v<long double>)
inlineconstexpr

$ 1/\sqrt{\pi} $ (variable template).

◆ ln10_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > >

template<typename Base, typename Intermediate, unsigned Fraction, bool Rounding>
toy::math::fixed<Base, Intermediate, Fraction, Rounding> std::numbers::ln10_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > > = toy::math::fixed<Base, Intermediate, Fraction, Rounding>(ln10_v<long double>)
inlineconstexpr

$ \ln 10 $ (variable template).

◆ ln2_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > >

template<typename Base, typename Intermediate, unsigned Fraction, bool Rounding>
toy::math::fixed<Base, Intermediate, Fraction, Rounding> std::numbers::ln2_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > > = toy::math::fixed<Base, Intermediate, Fraction, Rounding>(ln2_v<long double>)
inlineconstexpr

$ \ln 2 $ (variable template).

◆ log10e_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > >

template<typename Base, typename Intermediate, unsigned Fraction, bool Rounding>
toy::math::fixed<Base, Intermediate, Fraction, Rounding> std::numbers::log10e_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > > = toy::math::fixed<Base, Intermediate, Fraction, Rounding>(log10e_v<long double>)
inlineconstexpr

$ \log_{10} e $ (variable template).

◆ log2e_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > >

template<typename Base, typename Intermediate, unsigned Fraction, bool Rounding>
toy::math::fixed<Base, Intermediate, Fraction, Rounding> std::numbers::log2e_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > > = toy::math::fixed<Base, Intermediate, Fraction, Rounding>(log2e_v<long double>)
inlineconstexpr

$ \log_2 e $ (variable template).

◆ phi_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > >

template<typename Base, typename Intermediate, unsigned Fraction, bool Rounding>
toy::math::fixed<Base, Intermediate, Fraction, Rounding> std::numbers::phi_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > > = toy::math::fixed<Base, Intermediate, Fraction, Rounding>(phi_v<long double>)
inlineconstexpr

Golden ratio Φ (variable template).

◆ pi_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > >

template<typename Base, typename Intermediate, unsigned Fraction, bool Rounding>
toy::math::fixed<Base, Intermediate, Fraction, Rounding> std::numbers::pi_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > > = toy::math::fixed<Base, Intermediate, Fraction, Rounding>(pi_v<long double>)
inlineconstexpr

The mathematical constant π (variable template).

◆ sqrt2_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > >

template<typename Base, typename Intermediate, unsigned Fraction, bool Rounding>
toy::math::fixed<Base, Intermediate, Fraction, Rounding> std::numbers::sqrt2_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > > = toy::math::fixed<Base, Intermediate, Fraction, Rounding>(sqrt2_v<long double>)
inlineconstexpr

$ \sqrt{2} $ (variable template).

◆ sqrt3_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > >

template<typename Base, typename Intermediate, unsigned Fraction, bool Rounding>
toy::math::fixed<Base, Intermediate, Fraction, Rounding> std::numbers::sqrt3_v< toy::math::fixed< Base, Intermediate, Fraction, Rounding > > = toy::math::fixed<Base, Intermediate, Fraction, Rounding>(sqrt3_v<long double>)
inlineconstexpr

$ \sqrt{3} $ (variable template).