#physics #constants #codata

physical_constants

CODATA recommended values of physical constants

7 releases (4 breaking)

Uses old Rust 2015

0.4.1 May 9, 2021
0.4.0 Apr 24, 2021
0.3.0 Aug 27, 2016
0.2.0 Aug 22, 2016
0.0.0 Aug 5, 2016

#119 in Science

Download history 51/week @ 2021-06-02 90/week @ 2021-06-09 35/week @ 2021-06-16 22/week @ 2021-06-23 32/week @ 2021-06-30 40/week @ 2021-07-07 22/week @ 2021-07-14 13/week @ 2021-07-21 42/week @ 2021-07-28 37/week @ 2021-08-04 26/week @ 2021-08-11 13/week @ 2021-08-18 11/week @ 2021-08-25 9/week @ 2021-09-01 30/week @ 2021-09-08 17/week @ 2021-09-15

224 downloads per month
Used in 6 crates (2 directly)

GPL-3.0 license

24KB
81 lines

rust-physical_constants

Rust library providing access to the CODATA recommended values for physical constants.

Current functionality

A constant of type f64 is exposed for each quantity in the CODATA 2018 table.

For better or for worse, at the moment,

  • no quantity names have been changed beyond what is necessary to make them valid Rust identifiers,
  • no omissions of possibly redundant quantities have been made, and
  • none of the exact values have been recalculated for greater precision (instead, they appear with as many digits as they have in the original listing of quantities).

Possible future developments

  • Use a library (like dimensioned) to return quantities in a form that carries along their physical dimensions and their units.
  • Uncertainties
  • Uncertainty correlations
  • Previous CODATA datasets. (Note that comparisons between values from different datasets might be meaningless, as the definitions of the SI units might have changed. The old values can nevertheless be useful for reproducing old calculations.)

No runtime deps

~135KB