physical_constants

Crates.iophysical_constants
lib.rsphysical_constants
version0.5.0
sourcesrc
created_at2016-08-05 01:00:40.27369
updated_at2022-09-18 17:51:16.772821
descriptionCODATA recommended values of physical constants
homepage
repositoryhttps://github.com/JonasOlson/rust-physical_constants
max_upload_size
id5898
size82,183
Jonas Olson (JonasOlson)

documentation

https://docs.rs/physical_constants/

README

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.)
Commit count: 46

cargo fmt