Copyright Matus Chochlik. Distributed under the Boost Software License, Version 1.0. See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
#include <iostream>
template <typename Unit>
template <typename Unit>
using eagine::units::get_name;
using eagine::units::get_name_form;
using eagine::units::get_symbol;
const auto dim = get_dimension(q.
unit());
std::cout << get_name(dim) << " (" << get_name_form(dim)
<<
"): " << q.
value() <<
" [" << get_symbol(q.
unit()) <<
" ("
<< get_name_form(q.
unit()) <<
")]\n";
}
auto main() -> int {
using namespace eagine::units;
auto a = x * y;
auto v = a * z;
auto s = f / a;
auto e = v * s;
auto p = e / t;
print(x);
print(y);
print(a);
print(v);
print(t);
print(f);
print(s);
print(e);
print(p);
return 0;
}