Lines Matching refs:bu
28 namespace bu = boost::units;
35 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::dimensionless> E1; in test_main()
39 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::dimensionless> E2(E_); in test_main()
43 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::dimensionless> E3(E2); in test_main()
47 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::dimensionless> E4 = E2; in test_main()
51 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::dimensionless,float> E5(E2); in test_main()
54 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::dimensionless,long> E6(E2); in test_main()
67 bu::quantity<bu::dimensionless> E9(E2); in test_main()
107 …BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::dimensionless> E(bu::quantity<bu::dimensionles… in test_main()
118 BOOST_CHECK(bu::dimensionless()*2.0 == bu::quantity<bu::dimensionless>::from_value(2.0)); in test_main()
121 BOOST_CHECK(bu::dimensionless()/2.0 == bu::quantity<bu::dimensionless>::from_value(0.5)); in test_main()
124 BOOST_CHECK(2.0*bu::dimensionless() == bu::quantity<bu::dimensionless>::from_value(2.0)); in test_main()
127 BOOST_CHECK(2.0/bu::dimensionless() == bu::quantity<bu::dimensionless>::from_value(2.0)); in test_main()
130 BOOST_CHECK(E*2.0 == bu::quantity<bu::dimensionless>::from_value(5.0)); in test_main()
133 BOOST_CHECK(E/2.0 == bu::quantity<bu::dimensionless>::from_value(1.25)); in test_main()
136 BOOST_CHECK(2.0*E == bu::quantity<bu::dimensionless>::from_value(5.0)); in test_main()
139 BOOST_CHECK(2.0/E == bu::quantity<bu::dimensionless>::from_value(0.8)); in test_main()
141 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::dimensionless> D1(1.0), in test_main()
145 BOOST_CHECK(bu::dimensionless()*D1 == D1); in test_main()
148 BOOST_CHECK(bu::dimensionless()/D1 == D1); in test_main()
151 BOOST_CHECK(D1*bu::dimensionless() == D1); in test_main()
154 BOOST_CHECK(D1*bu::dimensionless() == D1); in test_main()
157 BOOST_CHECK(+D1 == 1.0*bu::dimensionless()); in test_main()
160 BOOST_CHECK(-D1 == -1.0*bu::dimensionless()); in test_main()
163 BOOST_CHECK(D2+D1 == 3.0*bu::dimensionless()); in test_main()
166 BOOST_CHECK(D2-D1 == 1.0*bu::dimensionless()); in test_main()
169 BOOST_CHECK(D1*D2 == 2.0*bu::dimensionless()); in test_main()
172 BOOST_CHECK(D2/D1 == 2.0*bu::dimensionless()); in test_main()
175 BOOST_CHECK(2.0*bu::pow<2>(D2) == 2.0*std::pow(2.0,2.0)*bu::dimensionless()); in test_main()
178 …BOOST_CHECK((2.0*bu::pow< bu::static_rational<2,3> >(D2) == 2.0*std::pow(2.0,2.0/3.0)*bu::dimensio… in test_main()
181 BOOST_CHECK(2.0*bu::root<2>(D2) == 2.0*std::pow(2.0,1.0/2.0)*bu::dimensionless()); in test_main()
184 …BOOST_CHECK((2.0*bu::root< bu::static_rational<3,2> >(D2) == 2.0*std::pow(2.0,2.0/3.0)*bu::dimensi… in test_main()
186 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::dimensionless> A1(0.0), in test_main()