SciPy ConstantThe scipy.constant package is available with a wide range of constants, which is used extensively in the scientific field. There are various physical, mathematical constants and units that we can import the required constants and use them as per needed. List of Mathematical constant The scipy.constant provides the following list of mathematical constants.
Consider the following example of scipy.constant. Here we compare the 'pi' value by importing different modules. Output: The above code will give the following output. As we can observe that both values are same. sciPy - pi Value = 3.141592653589793116 math - pi Value = 3.141592653589793116 Physical ConstantsThe scipy.constant package provides the number of physical constants. The most commonly used physical constants are the following:
Other important ConstantIt is difficult to remember all units; the few essential constants are listed below:
The scipy.constant provides the find() function, which returns a list of physical_constant keys containing a given string. Consider the following example: Output: ['Boltzmann constant', 'Boltzmann constant in Hz/K', 'Boltzmann constant in eV/K', 'Boltzmann constant in inverse meters per kelvin', 'Stefan-Boltzmann constant'] Next TopicSciPy FFTpack |