Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
constants.hpp File Reference

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Variables

const bfloat16 sw::universal::bf_pi_4 { 0.785398163f }
const bfloat16 sw::universal::bf_pi_3 { 1.047197551f }
const bfloat16 sw::universal::bf_pi_2 { 1.570796327f }
const bfloat16 sw::universal::bf_pi { 3.141592653f }
const bfloat16 sw::universal::bf_3pi_4 { 2.356194490f }
const bfloat16 sw::universal::bf_3pi_2 { 4.712388980f }
const bfloat16 sw::universal::bf_2pi { 6.283185307f }
const bfloat16 sw::universal::bf_1_pi { 0.318309886f }
const bfloat16 sw::universal::bf_2_pi { 0.636619772f }
const bfloat16 sw::universal::bf_2_sqrtpi { 1.128379167f }
const bfloat16 sw::universal::bf_sqrt2 { 1.414213562f }
const bfloat16 sw::universal::bf_1_sqrt2 { 0.707106781f }
const bfloat16 sw::universal::bf_e { 2.718281828f }
const bfloat16 sw::universal::bf_log2e { 1.442695041f }
const bfloat16 sw::universal::bf_log10e { 0.434294482f }
const bfloat16 sw::universal::bf_ln2 { 0.693147181f }
const bfloat16 sw::universal::bf_ln10 { 2.302585093f }