feat: electromagnetic SI constants added

This commit is contained in:
Mateusz Pusz
2022-12-20 10:42:13 +01:00
parent c30ce61c19
commit dd8a0a9697
2 changed files with 10 additions and 12 deletions
+5 -5
View File
@@ -38,13 +38,13 @@ int main()
1. * si2019::speed_of_light_in_vacuum, (1. * si2019::speed_of_light_in_vacuum)[m / s]);
std::cout << STD_FMT::format("- Planck constant: {} = {:%.8eQ %q}\n",
1. * si2019::planck_constant, (1. * si2019::planck_constant)[J * s]);
// TODO uncomment the below when ISQ is done
// std::cout << STD_FMT::format("- elementary charge: {} = {:%.9eQ %q}\n",
// 1. * si2019::elementary_charge, (1. * si2019::elementary_charge)[C]);
// std::cout << STD_FMT::format("- Boltzmann constant: {} = {:%.6eQ %q}\n",
// 1. * si2019::boltzmann_constant, (1. * si2019::boltzmann_constant)[J / K]);
std::cout << STD_FMT::format("- elementary charge: {} = {:%.9eQ %q}\n",
1. * si2019::elementary_charge, (1. * si2019::elementary_charge)[C]);
std::cout << STD_FMT::format("- Boltzmann constant: {} = {:%.6eQ %q}\n",
1. * si2019::boltzmann_constant, (1. * si2019::boltzmann_constant)[J / K]);
std::cout << STD_FMT::format("- Avogadro constant: {} = {:%.8eQ %q}\n",
1. * si2019::avogadro_constant, (1. * si2019::avogadro_constant)[1 / mol]);
// TODO uncomment the below when ISQ is done
// std::cout << STD_FMT::format("- luminous efficacy: {} = {}\n", 1. * si2019::luminous_efficacy,
// (1. * si2019::luminous_efficacy)[lm / W]);
}