SciPy TutorialLesson 4Free preview
SciPy Constants
This lesson is part of SciPy · All levels
Summary
The scipy.constants module contains a physics constant and a unit conversion often used in scientific calculations, such as the value of pi, the speed of light, and the style of gravity. The module also provides an inter-unit conversion function thus reducing the risk of manual value misreading. Using an inbuilt constant makes code easier to read and error-free.
Key points
- Scipy.constants contains the standard physics constant
- Available unit conversion functions such as meter to inch
- The constant value follows the periodically updated CODATA standard
- Using a constant name is safer than typing a manual number
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.