naturedynamics is a Python library that offers an extensive collection of physical constants, equations, and formulas.
Includes essential physical constants — SI base units, quantum constants, astronomical parameters, and more.
Separate modules for mechanics, thermodynamics, electromagnetism, atomic physics, nuclear physics, relativity, statistical mechanics, and beyond.
Convert seamlessly between SI, CGS, and natural units.
Perfect for integration into scientific calculators, simulations and teaching aids.
import naturedynamics as fp
from naturedynamics.relativity.general import schwarzschild_radius
from naturedynamics.thermodynamics.heat_engines import carnot_efficiency
# Access fundamental constants
print(fp.constants.SPEED_OF_LIGHT)
# Calculate Schwarzschild radius
print(schwarzschild_radius(10))
#Calulate the Carnot Efficiency
print(carnot_efficiency(500, 300))I welcome all contributions — from adding new formulas to refining documentation.
- Fork the repository
- Create a feature branch
- Submit a pull request
- Report issues or suggest enhancements
PyPI: https://pypi.org/project/naturedynamics
MIT License - see LICENSE file for details.