From 71a11f2bcfa73ddd873152ec87c3158ee97f3589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jules=20Ch=C3=A9ron?= Date: Sun, 23 Jan 2022 21:44:58 +0100 Subject: [PATCH 1/2] Update hour symbol to `h` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace h symbol for planck constant to `ℎ` - Add breaking change in CHANGES --- CHANGES | 4 ++++ pint/constants_en.txt | 30 +++++++++++++++--------------- pint/default_en.txt | 2 +- 3 files changed, 20 insertions(+), 16 deletions(-) diff --git a/CHANGES b/CHANGES index 64d523394..42c232ea0 100644 --- a/CHANGES +++ b/CHANGES @@ -12,6 +12,10 @@ Pint Changelog - Fix casting error when using to_reduced_units with array of int. (Issue #1184) +### Breaking Changes + +- Update hour default symobl to `h`. (Issue #719) +- Replace `h` with `ℎ` (U+210E) as default symbol for planck constant. 0.18 (2021-10-26) ----------------- diff --git a/pint/constants_en.txt b/pint/constants_en.txt index 9737b7c4b..9babc8fa2 100644 --- a/pint/constants_en.txt +++ b/pint/constants_en.txt @@ -18,7 +18,7 @@ eulers_number = 2.71828182845904523536028747135266249775724709369995 #### DEFINED EXACT CONSTANTS #### speed_of_light = 299792458 m/s = c = c_0 # since 1983 -planck_constant = 6.62607015e-34 J s = h # since May 2019 +planck_constant = 6.62607015e-34 J s = ℎ # since May 2019 elementary_charge = 1.602176634e-19 C = e # since May 2019 avogadro_number = 6.02214076e23 # since May 2019 boltzmann_constant = 1.380649e-23 J K^-1 = k = k_B # since May 2019 @@ -31,19 +31,19 @@ conventional_von_klitzing_constant = 2.5812807e4 ohm = R_K90 # since Jan 1990 # Floating-point conversion may introduce inaccuracies zeta = c / (cm/s) = ζ -dirac_constant = h / (2 * π) = ħ = hbar = atomic_unit_of_action = a_u_action +dirac_constant = ℎ / (2 * π) = ħ = hbar = atomic_unit_of_action = a_u_action avogadro_constant = avogadro_number * mol^-1 = N_A molar_gas_constant = k * N_A = R faraday_constant = e * N_A -conductance_quantum = 2 * e ** 2 / h = G_0 -magnetic_flux_quantum = h / (2 * e) = Φ_0 = Phi_0 -josephson_constant = 2 * e / h = K_J -von_klitzing_constant = h / e ** 2 = R_K -stefan_boltzmann_constant = 2 / 15 * π ** 5 * k ** 4 / (h ** 3 * c ** 2) = σ = sigma -first_radiation_constant = 2 * π * h * c ** 2 = c_1 -second_radiation_constant = h * c / k = c_2 -wien_wavelength_displacement_law_constant = h * c / (k * wien_x) -wien_frequency_displacement_law_constant = wien_u * k / h +conductance_quantum = 2 * e ** 2 / ℎ = G_0 +magnetic_flux_quantum = ℎ / (2 * e) = Φ_0 = Phi_0 +josephson_constant = 2 * e / ℎ = K_J +von_klitzing_constant = ℎ / e ** 2 = R_K +stefan_boltzmann_constant = 2 / 15 * π ** 5 * k ** 4 / (ℎ ** 3 * c ** 2) = σ = sigma +first_radiation_constant = 2 * π * ℎ * c ** 2 = c_1 +second_radiation_constant = ℎ * c / k = c_2 +wien_wavelength_displacement_law_constant = ℎ * c / (k * wien_x) +wien_frequency_displacement_law_constant = wien_u * k / ℎ #### MEASURED CONSTANTS #### # Recommended CODATA-2018 values @@ -65,10 +65,10 @@ K_alpha_W_d_220 = 0.108852175 #### DERIVED CONSTANTS #### -fine_structure_constant = (2 * h * R_inf / (m_e * c)) ** 0.5 = α = alpha -vacuum_permeability = 2 * α * h / (e ** 2 * c) = µ_0 = mu_0 = mu0 = magnetic_constant -vacuum_permittivity = e ** 2 / (2 * α * h * c) = ε_0 = epsilon_0 = eps_0 = eps0 = electric_constant -impedance_of_free_space = 2 * α * h / e ** 2 = Z_0 = characteristic_impedance_of_vacuum +fine_structure_constant = (2 * ℎ * R_inf / (m_e * c)) ** 0.5 = α = alpha +vacuum_permeability = 2 * α * ℎ / (e ** 2 * c) = µ_0 = mu_0 = mu0 = magnetic_constant +vacuum_permittivity = e ** 2 / (2 * α * ℎ * c) = ε_0 = epsilon_0 = eps_0 = eps0 = electric_constant +impedance_of_free_space = 2 * α * ℎ / e ** 2 = Z_0 = characteristic_impedance_of_vacuum coulomb_constant = α * hbar * c / e ** 2 = k_C classical_electron_radius = α * hbar / (m_e * c) = r_e thomson_cross_section = 8 / 3 * π * r_e ** 2 = σ_e = sigma_e diff --git a/pint/default_en.txt b/pint/default_en.txt index 164ff2d99..9f1029045 100644 --- a/pint/default_en.txt +++ b/pint/default_en.txt @@ -167,7 +167,7 @@ planck_mass = (hbar * c / gravitational_constant) ** 0.5 # Time minute = 60 * second = min -hour = 60 * minute = hr +hour = 60 * minute = h = hr day = 24 * hour = d week = 7 * day fortnight = 2 * week From c71b83662324a196286821eb9290e90668a8f9bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jules=20Ch=C3=A9ron?= <43635101+jules-ch@users.noreply.github.com> Date: Sat, 12 Feb 2022 12:08:36 +0100 Subject: [PATCH 2/2] Update CHANGES --- CHANGES | 2 +- pint/default_en.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 65e538d5e..732ec4768 100644 --- a/CHANGES +++ b/CHANGES @@ -19,7 +19,7 @@ Pint Changelog ### Breaking Changes -- Update hour default symobl to `h`. (Issue #719) +- Update hour default symbol to `h`. (Issue #719) - Replace `h` with `ℎ` (U+210E) as default symbol for planck constant. - Change minimal Python version support to 3.8+ - Change minimal Numpy version support to 1.19+ diff --git a/pint/default_en.txt b/pint/default_en.txt index 9f1029045..e3f1083c8 100644 --- a/pint/default_en.txt +++ b/pint/default_en.txt @@ -255,7 +255,7 @@ joule = newton * meter = J erg = dyne * centimeter watt_hour = watt * hour = Wh = watthour electron_volt = e * volt = eV -rydberg = h * c * R_inf = Ry +rydberg = ℎ * c * R_inf = Ry hartree = 2 * rydberg = E_h = Eh = hartree_energy = atomic_unit_of_energy = a_u_energy calorie = 4.184 * joule = cal = thermochemical_calorie = cal_th international_calorie = 4.1868 * joule = cal_it = international_steam_table_calorie