Hi everyone,
happy to share invaria, a typst package containing (physical) constants.
I wrote it, because I needed a hand full of constants and… well, things got out of hand.
The main idea is to have access to constants from different data sources for printing and calculations (goal is to also be able to e.g. compare your calculations between different historical definitions of constants as soon as multiple datasets are included).
Current features:
- Access to all NIST CODATA 2022 constants
- Including: The constant name, uncertainty and unit (tested with the great zero and unify packages, but still somehow fragile in some cases)
Future plans:
- Include the CODATA 2026 dataset as soon as it is available
- Include historical constants and other datasets
At the current stage, I’m not 100% sure about the API. Let me know how you would like to use the package. Input is especially welcome for issue #11: possible information loss by using floats. Very open for suggestions and your ideas
Disclaimer: This is mainly based on a lot of scraping magic and the constants have not all been double checked. If you e.g. build and run a rocket using Typst and it goes kaboom that’s between you, the rocket, and the laws of physics. I am not responsible for any damage whatsoever.