Skip to content

Variable c_recip_pi

variable c_recip_pi simd

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

The reciprocal of π (1/π), scaled by m/d.

Template parameters
T The numeric type.
m Numerator multiplier (default is 1).
d Denominator divisor (default is 1).

Note

Examples: - c_recip_pi<f64> = 1/π - c_recip_pi<f64, 4> = 4/π

Fully qualified name: kfr::c_recip_pi

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.