change const order

move in,ft,fathom,ft2,ft3,mph from us to international namespace
TODO distinguish units with different names for same values
This commit is contained in:
Andy Little
2020-01-12 21:34:36 +01:00
committed by Mateusz Pusz
parent c93136e81b
commit 024f5a9c83
15 changed files with 109 additions and 58 deletions
+4 -4
View File
@@ -56,13 +56,13 @@ int main()
std::cout.setf(std::ios_base::fixed,std::ios_base::floatfield);
std::cout.precision(3);
auto constexpr C = 0.47uF;
auto constexpr V0 = 5.0V;
auto constexpr R = 4.7kR;
constexpr auto C = 0.47uF;
constexpr auto V0 = 5.0V;
constexpr auto R = 4.7kR;
for ( auto t = 0ms ; t <= 50ms; ++t ){
auto const Vt = V0 * std::exp(-t / (R * C));
const auto Vt = V0 * std::exp(-t / (R * C));
std::cout << "at " << t << " voltage is " ;