#constants #physics #codata

physical_constants

CODATA recommended values of physical constants

8 releases (5 breaking)

0.5.0 Sep 18, 2022
0.4.1 May 9, 2021
0.4.0 Apr 24, 2021
0.3.0 Aug 27, 2016
0.0.0 Aug 5, 2016

#297 in Science

Download history 68/week @ 2024-07-22 50/week @ 2024-07-29 48/week @ 2024-08-05 60/week @ 2024-08-12 320/week @ 2024-08-19 180/week @ 2024-08-26 200/week @ 2024-09-02 90/week @ 2024-09-09 252/week @ 2024-09-16 549/week @ 2024-09-23 430/week @ 2024-09-30 73/week @ 2024-10-07 114/week @ 2024-10-14 254/week @ 2024-10-21 113/week @ 2024-10-28 56/week @ 2024-11-04

538 downloads per month
Used in 7 crates (3 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

~0–320KB