Skip to content

Constants


c_degtorad variable

template <typename T>
constexpr inline subtype<T> c_degtorad = c_pi<T, 1, 180>

degree to radian conversion factor


c_e variable

template <typename T, int m = 1, int d = 1>
constexpr inline subtype<T> c_e =
    subtype<T>(2.718281828459045235360287471352662 * m / d)

e, Euler's number


c_infinity variable

template <typename T>
constexpr inline subtype<T> c_infinity =
    std::numeric_limits<subtype<T>>::infinity()

infinity


c_neginfinity variable

template <typename T>
constexpr inline subtype<T> c_neginfinity =
    -std::numeric_limits<subtype<T>>::infinity()

-infinity


c_pi variable

template <typename T, int m = 1, int d = 1>
constexpr inline subtype<T> c_pi =
    subtype<T>(3.1415926535897932384626433832795 * m / d)

π (pi) c_pi<f64, 4> = 4pi c_pi<f64, 3, 4> = 3/4pi


c_qnan variable

template <typename T>
constexpr inline subtype<T> c_qnan =
    std::numeric_limits<subtype<T>>::quiet_NaN()

Quiet NaN


c_radtodeg variable

template <typename T>
constexpr inline subtype<T> c_radtodeg = c_recip_pi<T, 180>

radian to degree conversion factor


c_recip_pi variable

template <typename T, int m = 1, int d = 1>
constexpr inline subtype<T> c_recip_pi =
    subtype<T>(0.31830988618379067153776752674503 * m / d)

1/π (1/pi) c_recip_pi<f64> 1/pi c_recip_pi<f64, 4> 4/pi


c_sqr_pi variable

template <typename T, int m = 1, int d = 1>
constexpr inline subtype<T> c_sqr_pi =
    subtype<T>(9.8696044010893586188344909998762 * m / d)

π² (pi²) c_sqr_pi<f64, 4> = 4pi² c_sqr_pi<f64, 3, 4> = 3/4pi²


Auto-generated from sources, Revision 6aea976a464de59d522d0c629e64bf0c044e6777, https://github.com/kfrlib/kfr/blob/6aea976a464de59d522d0c629e64bf0c044e6777/include/kfr/