From 47a522688816ead5215387697e3a1d6dbbf42f1b Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Sat, 6 Jan 2024 08:51:01 +0100 Subject: [PATCH] style: formatting and whitespaces fixed to make pre-commit happy --- example/total_energy.cpp | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/example/total_energy.cpp b/example/total_energy.cpp index 116ac4ad..f183169b 100644 --- a/example/total_energy.cpp +++ b/example/total_energy.cpp @@ -60,21 +60,31 @@ void si_example() std::cout << "\n*** SI units (c = " << c << " = " << c.in(si::metre / s) << ") ***\n"; - std::cout << "\n[in `GeV` and `c`]\n" << "p = " << p1 << "\n" << "m = " << m1 << "\n" << "E = " << E << "\n"; + std::cout << "\n[in `GeV` and `c`]\n" + << "p = " << p1 << "\n" + << "m = " << m1 << "\n" + << "E = " << E << "\n"; const auto p2 = p1.in(GeV / (m / s)); const auto m2 = m1.in(GeV / pow<2>(m / s)); const auto E2 = total_energy(p2, m2, c).in(GeV); - std::cout << "\n[in `GeV`]\n" << "p = " << p2 << "\n" << "m = " << m2 << "\n" << "E = " << E2 << "\n"; + std::cout << "\n[in `GeV`]\n" + << "p = " << p2 << "\n" + << "m = " << m2 << "\n" + << "E = " << E2 << "\n"; const auto p3 = p1.in(kg * m / s); const auto m3 = m1.in(kg); const auto E3 = total_energy(p3, m3, c).in(J); - std::cout << "\n[in SI base units]\n" << "p = " << p3 << "\n" << "m = " << m3 << "\n" << "E = " << E3 << "\n"; + std::cout << "\n[in SI base units]\n" + << "p = " << p3 << "\n" + << "m = " << m3 << "\n" + << "E = " << E3 << "\n"; - std::cout << "\n[converted from SI units back to GeV]\n" << "E = " << E3.force_in(GeV) << "\n"; + std::cout << "\n[converted from SI units back to GeV]\n" + << "E = " << E3.force_in(GeV) << "\n"; } void natural_example()