Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
reference_constants.hpp File Reference
#include <string>
#include <string_view>
#include <type_traits>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<typename T>
T sw::universal::from_reference (std::string_view sv)
template<typename T>
T sw::universal::make_pi ()
template<typename T>
T sw::universal::make_pi_2 ()
template<typename T>
T sw::universal::make_pi_3 ()
template<typename T>
T sw::universal::make_pi_4 ()
template<typename T>
T sw::universal::make_two_pi ()
template<typename T>
T sw::universal::make_three_pi ()
template<typename T>
T sw::universal::make_three_pi_4 ()
template<typename T>
T sw::universal::make_inv_pi ()
template<typename T>
T sw::universal::make_two_inv_pi ()
template<typename T>
T sw::universal::make_e ()
template<typename T>
T sw::universal::make_inv_e ()
template<typename T>
T sw::universal::make_phi ()
template<typename T>
T sw::universal::make_inv_phi ()
template<typename T>
T sw::universal::make_sqrt2 ()
template<typename T>
T sw::universal::make_sqrt3 ()
template<typename T>
T sw::universal::make_sqrt5 ()
template<typename T>
T sw::universal::make_inv_sqrt2 ()
template<typename T>
T sw::universal::make_ln2 ()
template<typename T>
T sw::universal::make_ln10 ()
template<typename T>
T sw::universal::make_log2e ()
template<typename T>
T sw::universal::make_log2_10 ()
template<typename T>
T sw::universal::make_log10e ()
template<typename T>
T sw::universal::make_log10_2 ()
template<typename T>
T sw::universal::make_two_over_sqrt_pi ()
template<typename T>
T sw::universal::make_euler_gamma ()

Variables

constexpr std::string_view sw::universal::s_pi
constexpr std::string_view sw::universal::s_pi_2
constexpr std::string_view sw::universal::s_pi_3
constexpr std::string_view sw::universal::s_pi_4
constexpr std::string_view sw::universal::s_two_pi
constexpr std::string_view sw::universal::s_three_pi
constexpr std::string_view sw::universal::s_three_pi_4
constexpr std::string_view sw::universal::s_inv_pi
constexpr std::string_view sw::universal::s_two_inv_pi
constexpr std::string_view sw::universal::s_e
constexpr std::string_view sw::universal::s_inv_e
constexpr std::string_view sw::universal::s_phi
constexpr std::string_view sw::universal::s_inv_phi
constexpr std::string_view sw::universal::s_sqrt2
constexpr std::string_view sw::universal::s_sqrt3
constexpr std::string_view sw::universal::s_sqrt5
constexpr std::string_view sw::universal::s_inv_sqrt2
constexpr std::string_view sw::universal::s_ln2
constexpr std::string_view sw::universal::s_ln10
constexpr std::string_view sw::universal::s_log2e
constexpr std::string_view sw::universal::s_log2_10
constexpr std::string_view sw::universal::s_log10e
constexpr std::string_view sw::universal::s_log10_2
constexpr std::string_view sw::universal::s_two_over_sqrt_pi
constexpr std::string_view sw::universal::s_euler_gamma
constexpr std::string_view sw::universal::s_pi_6
constexpr std::string_view sw::universal::s_sin_half
constexpr std::string_view sw::universal::s_cos_half
constexpr std::string_view sw::universal::s_tan_half
constexpr std::string_view sw::universal::s_sinh_half
constexpr std::string_view sw::universal::s_cosh_half
constexpr std::string_view sw::universal::s_tanh_half
constexpr std::string_view sw::universal::s_sin_1e3
constexpr std::string_view sw::universal::s_cos_1e3
constexpr std::string_view sw::universal::s_sin_1e6
constexpr std::string_view sw::universal::s_cos_1e6
constexpr std::string_view sw::universal::s_sin_1e12
constexpr std::string_view sw::universal::s_cos_1e12
constexpr std::string_view sw::universal::s_sin_1e20
constexpr std::string_view sw::universal::s_cos_1e20
constexpr std::string_view sw::universal::s_tan_1e20
constexpr std::string_view sw::universal::s_sin_1e100
constexpr std::string_view sw::universal::s_cos_1e100
constexpr std::string_view sw::universal::s_tan_1e100
constexpr std::string_view sw::universal::s_sin_1e200
constexpr std::string_view sw::universal::s_cos_1e200
constexpr std::string_view sw::universal::s_tan_1e200
constexpr std::string_view sw::universal::s_sin_1e300
constexpr std::string_view sw::universal::s_cos_1e300
constexpr std::string_view sw::universal::s_tan_1e300
constexpr std::string_view sw::universal::s_sin_1e30
constexpr std::string_view sw::universal::s_cos_1e30
constexpr std::string_view sw::universal::s_tan_1e30
constexpr std::string_view sw::universal::s_sin_3e38
constexpr std::string_view sw::universal::s_cos_3e38
constexpr std::string_view sw::universal::s_tan_3e38
constexpr std::string_view sw::universal::s_sin_2p16000
constexpr std::string_view sw::universal::s_cos_2p16000
constexpr std::string_view sw::universal::s_erf_0p3
constexpr std::string_view sw::universal::s_erfc_0p3
constexpr std::string_view sw::universal::s_erf_1
constexpr std::string_view sw::universal::s_erfc_1
constexpr std::string_view sw::universal::s_erf_2p5
constexpr std::string_view sw::universal::s_erfc_2p5
constexpr std::string_view sw::universal::s_erf_5
constexpr std::string_view sw::universal::s_erfc_5
constexpr std::string_view sw::universal::s_erf_10
constexpr std::string_view sw::universal::s_erfc_10
constexpr std::string_view sw::universal::s_erf_20
constexpr std::string_view sw::universal::s_erfc_20
constexpr std::string_view sw::universal::s_erf_m1p7
constexpr std::string_view sw::universal::s_erfc_m1p7
constexpr std::string_view sw::universal::s_tgamma_0p5
constexpr std::string_view sw::universal::s_lgamma_0p5
constexpr std::string_view sw::universal::s_tgamma_2p7
constexpr std::string_view sw::universal::s_lgamma_2p7
constexpr std::string_view sw::universal::s_tgamma_10p5
constexpr std::string_view sw::universal::s_lgamma_10p5
constexpr std::string_view sw::universal::s_tgamma_100p25
constexpr std::string_view sw::universal::s_lgamma_100p25
constexpr std::string_view sw::universal::s_tgamma_m2p5
constexpr std::string_view sw::universal::s_lgamma_m2p5
constexpr std::string_view sw::universal::s_tgamma_m0p3
constexpr std::string_view sw::universal::s_lgamma_m0p3
constexpr std::string_view sw::universal::s_tgamma_1em20
constexpr std::string_view sw::universal::s_lgamma_1em20
constexpr std::string_view sw::universal::s_cexp_z1_re
constexpr std::string_view sw::universal::s_cexp_z1_im
constexpr std::string_view sw::universal::s_clog_z1_re
constexpr std::string_view sw::universal::s_clog_z1_im
constexpr std::string_view sw::universal::s_clog10_z1_re
constexpr std::string_view sw::universal::s_clog10_z1_im
constexpr std::string_view sw::universal::s_csqrt_z1_re
constexpr std::string_view sw::universal::s_csqrt_z1_im
constexpr std::string_view sw::universal::s_csin_z1_re
constexpr std::string_view sw::universal::s_csin_z1_im
constexpr std::string_view sw::universal::s_ccos_z1_re
constexpr std::string_view sw::universal::s_ccos_z1_im
constexpr std::string_view sw::universal::s_ctan_z1_re
constexpr std::string_view sw::universal::s_ctan_z1_im
constexpr std::string_view sw::universal::s_casin_z1_re
constexpr std::string_view sw::universal::s_casin_z1_im
constexpr std::string_view sw::universal::s_cacos_z1_re
constexpr std::string_view sw::universal::s_cacos_z1_im
constexpr std::string_view sw::universal::s_catan_z1_re
constexpr std::string_view sw::universal::s_catan_z1_im
constexpr std::string_view sw::universal::s_csinh_z1_re
constexpr std::string_view sw::universal::s_csinh_z1_im
constexpr std::string_view sw::universal::s_ccosh_z1_re
constexpr std::string_view sw::universal::s_ccosh_z1_im
constexpr std::string_view sw::universal::s_ctanh_z1_re
constexpr std::string_view sw::universal::s_ctanh_z1_im
constexpr std::string_view sw::universal::s_casinh_z1_re
constexpr std::string_view sw::universal::s_casinh_z1_im
constexpr std::string_view sw::universal::s_cacosh_z1_re
constexpr std::string_view sw::universal::s_cacosh_z1_im
constexpr std::string_view sw::universal::s_catanh_z1_re
constexpr std::string_view sw::universal::s_catanh_z1_im
constexpr std::string_view sw::universal::s_cabs_z1
constexpr std::string_view sw::universal::s_carg_z1
constexpr std::string_view sw::universal::s_cexp_z2_re
constexpr std::string_view sw::universal::s_cexp_z2_im
constexpr std::string_view sw::universal::s_clog_z2_re
constexpr std::string_view sw::universal::s_clog_z2_im
constexpr std::string_view sw::universal::s_clog10_z2_re
constexpr std::string_view sw::universal::s_clog10_z2_im
constexpr std::string_view sw::universal::s_csqrt_z2_re
constexpr std::string_view sw::universal::s_csqrt_z2_im
constexpr std::string_view sw::universal::s_csin_z2_re
constexpr std::string_view sw::universal::s_csin_z2_im
constexpr std::string_view sw::universal::s_ccos_z2_re
constexpr std::string_view sw::universal::s_ccos_z2_im
constexpr std::string_view sw::universal::s_ctan_z2_re
constexpr std::string_view sw::universal::s_ctan_z2_im
constexpr std::string_view sw::universal::s_casin_z2_re
constexpr std::string_view sw::universal::s_casin_z2_im
constexpr std::string_view sw::universal::s_cacos_z2_re
constexpr std::string_view sw::universal::s_cacos_z2_im
constexpr std::string_view sw::universal::s_catan_z2_re
constexpr std::string_view sw::universal::s_catan_z2_im
constexpr std::string_view sw::universal::s_csinh_z2_re
constexpr std::string_view sw::universal::s_csinh_z2_im
constexpr std::string_view sw::universal::s_ccosh_z2_re
constexpr std::string_view sw::universal::s_ccosh_z2_im
constexpr std::string_view sw::universal::s_ctanh_z2_re
constexpr std::string_view sw::universal::s_ctanh_z2_im
constexpr std::string_view sw::universal::s_casinh_z2_re
constexpr std::string_view sw::universal::s_casinh_z2_im
constexpr std::string_view sw::universal::s_cacosh_z2_re
constexpr std::string_view sw::universal::s_cacosh_z2_im
constexpr std::string_view sw::universal::s_catanh_z2_re
constexpr std::string_view sw::universal::s_catanh_z2_im
constexpr std::string_view sw::universal::s_cabs_z2
constexpr std::string_view sw::universal::s_carg_z2
constexpr std::string_view sw::universal::s_cpow_z1_z2_re
constexpr std::string_view sw::universal::s_cpow_z1_z2_im