diff --git a/src/si/mass.rs b/src/si/mass.rs index f8fcaa1b..d6f91dc6 100644 --- a/src/si/mass.rs +++ b/src/si/mass.rs @@ -53,5 +53,26 @@ quantity! { @ton_long: 1.016_047_E3; "2240 lb", "long ton", "long tons"; @ton_short: 9.071_847_E2; "2000 lb", "short ton", "short tons"; @ton: 1.0_E3; "t", "ton", "tons"; // ton, metric + + @alpha_particle_mass: 6.644_657_335_7_E-27; "m(α)", + "alpha particle mass", "alpha particle masses"; + @deuteron_mass: 3.343_583_772_4_E-27; "m(deuteron)", + "deuteron mass", "deuteron masses"; + @electron_mass: 9.109_383_701_5_E-31; "mₑ", + "electron mass", "electron masses"; + @helion_mass: 5.006_412_779_6_E-27; "m(helion)", + "helion mass", "helion masses"; + @muon_mass: 1.883_531_627_E-28; "m(muon)", + "muon mass", "muon masses"; + @neutron_mass: 1.674_927_498_04_E-27; "m(neutron)", + "neutron mass", "neutron masses"; + @proton_mass: 1.672_621_923_69_E-27; "m(proton)", + "proton mass", "proton masses"; + @tau_mass: 3.167_54_E-27; "m(τ)", + "tau mass", "tau masses"; + @triton_mass: 5.007_356_744_6_E-27; "m(triton)", + "triton mass", "triton masses"; + @planck_mass: 2.176_434_E-8; "m(Planck)", + "Planck mass", "Planck masses"; } } diff --git a/src/si/molar_mass.rs b/src/si/molar_mass.rs index 2c0f1561..1d2a919c 100644 --- a/src/si/molar_mass.rs +++ b/src/si/molar_mass.rs @@ -56,6 +56,35 @@ quantity! { "zg/mol", "zeptogram per mole", "zeptograms per mole"; @yoctogram_per_mole: prefix!(yocto) / prefix!(kilo); "yg/mol", "yoctogram per mole", "yoctograms per mole"; + + @kilogram_per_particle: 6.022_140_76_E23; "kg/particle", + "kilogram per particle", "kilograms_per_particle"; + @gram_per_particle: prefix!(milli) * 6.022_140_76_E23; "g/particle", + "gram per particle", "grams_per_particle"; + + @molar_mass_constant: 0.999_999_999_65_E-3; "Mᵤ", + "molar mass constant", "molar mass constants"; + @molar_mass_of_carbon_12: 11.999_999_995_8_E-3; "M(¹²C)", + "molar mass of carbon-12", "molar masses of carbon-12"; + + @alpha_particle_molar_mass: 4.001_506_177_755_197_E-3; "M(α)", // CODATA value 4.001_506_177_7_E-3 + "alpha particle molar mass", "alpha particle molar masses"; + @deuteron_molar_mass: 2.013_553_212_024_460_4_E-3; "M(deuteron)", // CODATA value 2.013_553_212_05_E-3 + "deuteron molar mass", "deuteron molar masses"; + @electron_molar_mass: 5.485_799_088_728_283_E-7 ; "Mₑ", // CODATA value 5.485_799_088_8_E-7 + "electron molar mass", "electron molar masses"; + @helion_molar_mass: 3.014_932_246_141_405_4_E-3; "M(helion)", // CODATA value 3.014_932_246_13_E-3 + "helion molar mass", "helion molar masses"; + @muon_molar_mass: 1.134_289_258_370_581_7_E-4; "M(muon)", // CODATA value 1.134 289 259 e-4 + "muon molar mass", "muon molar masses"; + @neutron_molar_mass: 1.008_664_915_599_150_3_E-3; "M(neutron)", // CODATA value 1.008 664 915 60 e-3 + "neutron molar mass", "neutron molar masses"; + @proton_molar_mass: 1.007_276_466_272_316_E-3; "M(proton)", // CODATA value 1.007 276 466 27 e-3 + "proton molar mass", "proton molar masses"; + @tau_molar_mass: 1.907_537_174_293_039_8_E-3; "M(τ)", // CODATA value 1.907 54 e-3 + "tau molar mass", "tau molar masses"; + @triton_molar_mass: 3.015_500_715_151_657_E-3; "M(triton)", // CODATA value 3.015 500 715 17 e-3 + "triton molar mass", "triton molar masses"; } } @@ -105,5 +134,26 @@ mod tests { / AmountOfSubstance::new::(V::one()))); } } + + #[test] + fn check_units_mass_aos() { + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + + fn test, AOS:aos::Conversion, MM: mm::Conversion>() { + Test::assert_approx_eq(&MolarMass::new::(V::one()), + &(Mass::new::(V::one()) + / AmountOfSubstance::new::(V::one()))); + } + } } }