Lines Matching full:numbers

12 #include <numbers>
15 [[maybe_unused]] float f0{std::numbers::e_v<float>}; in tests()
16 [[maybe_unused]] float f1{std::numbers::log2e_v<float>}; in tests()
17 [[maybe_unused]] float f2{std::numbers::log10e_v<float>}; in tests()
18 [[maybe_unused]] float f3{std::numbers::pi_v<float>}; in tests()
19 [[maybe_unused]] float f4{std::numbers::inv_pi_v<float>}; in tests()
20 [[maybe_unused]] float f5{std::numbers::inv_sqrtpi_v<float>}; in tests()
21 [[maybe_unused]] float f6{std::numbers::ln2_v<float>}; in tests()
22 [[maybe_unused]] float f7{std::numbers::ln10_v<float>}; in tests()
23 [[maybe_unused]] float f8{std::numbers::sqrt2_v<float>}; in tests()
24 [[maybe_unused]] float f9{std::numbers::sqrt3_v<float>}; in tests()
25 [[maybe_unused]] float f10{std::numbers::inv_sqrt3_v<float>}; in tests()
26 [[maybe_unused]] float f11{std::numbers::egamma_v<float>}; in tests()
27 [[maybe_unused]] float f12{std::numbers::phi_v<float>}; in tests()
29 double d0{std::numbers::e_v<double>}; in tests()
30 double d1{std::numbers::log2e_v<double>}; in tests()
31 double d2{std::numbers::log10e_v<double>}; in tests()
32 double d3{std::numbers::pi_v<double>}; in tests()
33 double d4{std::numbers::inv_pi_v<double>}; in tests()
34 double d5{std::numbers::inv_sqrtpi_v<double>}; in tests()
35 double d6{std::numbers::ln2_v<double>}; in tests()
36 double d7{std::numbers::ln10_v<double>}; in tests()
37 double d8{std::numbers::sqrt2_v<double>}; in tests()
38 double d9{std::numbers::sqrt3_v<double>}; in tests()
39 double d10{std::numbers::inv_sqrt3_v<double>}; in tests()
40 double d11{std::numbers::egamma_v<double>}; in tests()
41 double d12{std::numbers::phi_v<double>}; in tests()
43 assert(d0 == std::numbers::e); in tests()
44 assert(d1 == std::numbers::log2e); in tests()
45 assert(d2 == std::numbers::log10e); in tests()
46 assert(d3 == std::numbers::pi); in tests()
47 assert(d4 == std::numbers::inv_pi); in tests()
48 assert(d5 == std::numbers::inv_sqrtpi); in tests()
49 assert(d6 == std::numbers::ln2); in tests()
50 assert(d7 == std::numbers::ln10); in tests()
51 assert(d8 == std::numbers::sqrt2); in tests()
52 assert(d9 == std::numbers::sqrt3); in tests()
53 assert(d10 == std::numbers::inv_sqrt3); in tests()
54 assert(d11 == std::numbers::egamma); in tests()
55 assert(d12 == std::numbers::phi); in tests()
57 [[maybe_unused]] long double ld0{std::numbers::e_v<long double>}; in tests()
58 [[maybe_unused]] long double ld1{std::numbers::log2e_v<long double>}; in tests()
59 [[maybe_unused]] long double ld2{std::numbers::log10e_v<long double>}; in tests()
60 [[maybe_unused]] long double ld3{std::numbers::pi_v<long double>}; in tests()
61 [[maybe_unused]] long double ld4{std::numbers::inv_pi_v<long double>}; in tests()
62 [[maybe_unused]] long double ld5{std::numbers::inv_sqrtpi_v<long double>}; in tests()
63 [[maybe_unused]] long double ld6{std::numbers::ln2_v<long double>}; in tests()
64 [[maybe_unused]] long double ld7{std::numbers::ln10_v<long double>}; in tests()
65 [[maybe_unused]] long double ld8{std::numbers::sqrt2_v<long double>}; in tests()
66 [[maybe_unused]] long double ld9{std::numbers::sqrt3_v<long double>}; in tests()
67 [[maybe_unused]] long double ld10{std::numbers::inv_sqrt3_v<long double>}; in tests()
68 [[maybe_unused]] long double ld11{std::numbers::egamma_v<long double>}; in tests()
69 [[maybe_unused]] long double ld12{std::numbers::phi_v<long double>}; in tests()