A Python library with extensive natural constants, equations, and formulae.
| naturedynamics | ||
| .gitignore | ||
| LICENSE | ||
| pyproject.toml | ||
| README.md | ||
| requirements-dev.txt | ||
| requirements.txt | ||
| setup.py | ||
naturedynamics — A Comprehensive Physics Library in Python
naturedynamics is a Python library that offers an extensive collection of physical constants, equations, and formulas.
Key Features
Constants Database
Includes essential physical constants — SI base units, quantum constants, astronomical parameters, and more.
Modular Formula Collections
Separate modules for mechanics, thermodynamics, electromagnetism, atomic physics, nuclear physics, relativity, statistical mechanics, and beyond.
Unit Conversion
Convert seamlessly between SI, CGS, and natural units.
Built for Learning
Perfect for integration into scientific calculators, simulations and teaching aids.
Quick Start
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))
Contributing
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
Links
PyPI: https://pypi.org/project/naturedynamics
License
MIT License - see LICENSE file for details.