Physical and mathematical constants available in SciPy
In the following recipe, we will see how to use functions about physical and mathematical constants available in SciPy.
Getting ready...
We need to have the proper library to use the functions in SciPy installed. To install it, we need to download the library.
How to do it...
We need to see the following functions to be installed with the scipy
library.
- In the following table, we have mentioned some of the functions and special constants
- It depends on the requirement you have, you need select the correct one
- Execute the functions you have chosen
Mathematical constants:
Function | Description |
| Pi |
| Golden ratio |
| Golden ratio |
Physical constants:
Function | Description |
| Speed of light in vacuum |
| The magnetic constant, μ0 |
| The electric constant (vacuum permittivity), ϵ 0 |
| The Planck constant, h |
| The Planck constant, h |
| ℏ=h/(2π) |
| Newtonian constant of gravitation |
| Newtonian constant of gravitation... |