tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
constants.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  etl
 
namespace  etl::numbers
 

Variables

constexpr double e = e_v<double>
 
template<typename T>
constexpr auto e_v = static_cast<T>(2.7182818284590452353602874713526625L)
 
constexpr double egamma = egamma_v<double>
 
template<typename T>
constexpr auto egamma_v = static_cast<T>(0.5772156649015328606065120900824024L)
 
constexpr double inv_pi = inv_pi_v<double>
 
template<typename T>
constexpr auto inv_pi_v = static_cast<T>(0.3183098861837906715377675267450287L)
 
constexpr double inv_sqrt3 = inv_sqrt3_v<double>
 
template<typename T>
constexpr auto inv_sqrt3_v = static_cast<T>(0.5773502691896257645091487805019574L)
 
constexpr double inv_sqrtpi = inv_sqrtpi_v<double>
 
template<typename T>
constexpr auto inv_sqrtpi_v = static_cast<T>(0.5641895835477562869480794515607725L)
 
constexpr double ln10 = ln10_v<double>
 
template<typename T>
constexpr auto ln10_v = static_cast<T>(2.3025850929940456840179914546843642L)
 
constexpr double ln2 = ln2_v<double>
 
template<typename T>
constexpr auto ln2_v = static_cast<T>(0.6931471805599453094172321214581766L)
 
constexpr double log10e = log10e_v<double>
 
template<typename T>
constexpr auto log10e_v = static_cast<T>(0.4342944819032518276511289189166051L)
 
constexpr double log2e = log2e_v<double>
 
template<typename T>
constexpr auto log2e_v = static_cast<T>(1.4426950408889634073599246810018921L)
 
constexpr double phi = phi_v<double>
 
template<typename T>
constexpr auto phi_v = static_cast<T>(1.6180339887498948482045868343656381L)
 
constexpr double pi = pi_v<double>
 
template<typename T>
constexpr auto pi_v = static_cast<T>(3.1415926535897932384626433832795028L)
 
constexpr double sqrt2 = sqrt2_v<double>
 
template<typename T>
constexpr auto sqrt2_v = static_cast<T>(1.4142135623730950488016887242096981L)
 
constexpr double sqrt3 = sqrt3_v<double>
 
template<typename T>
constexpr auto sqrt3_v = static_cast<T>(1.7320508075688772935274463415058724L)