SciPy Constant

The 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.

Sr. No.ConstantsDescription
1.pipi
2.goldenGolden ratio

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 Constants

The scipy.constant package provides the number of physical constants. The most commonly used physical constants are the following:

Sr. No.Physical ConstantsDescription
1.cSpeed of light in vaccum
2.speed_of_lightSpeed of light in vaccum
3.GStandard acceleration of gravity
4.GNewton Constant of gravitation
5.EElementry charge
6.RMolar gas constant
7.AlphaFine-structure constant
8.N_AAvagadro constant
9.KBoltzmann constant
10SigmaStefan-Boltzmann constant σ
11.m_eElectron mass
12.m_pProton mass
13.m_nNeutron Mass
14.HPlank Constant
15.Plank constantPlank constant h

Other important Constant

It is difficult to remember all units; the few essential constants are listed below:

Sr. No.UnitsValue
1.Mass
GramOne gram in Kilogram.
GrainOne grain in Kilogram.
PoundOne Pound in Kilogram.
OunceOne Ounce in Kilogram.
automic_massAtomics mass constant in Kilogram.
2.Time
MinuteOne minute in seconds.
HourOne hour in seconds.
DayOne day in seconds.
YearOne year in seconds.
3.Length
InchOne inch in meters.
FootOne foot in meters.
YardOne yard in meters.
PtOne point in meters.
MicronOne Micron in meters.
4.Pressure
AtmThe standard atmosphere in pascals.
AtmosphereThe standard atmosphere in pascals.
BarOne bar in Pascals.
TorrOne torr(mmHg) in pascals.
5.Area
HectareOne hectare in square meters.
AcreOne acre in square meters.
6.Speed
KmhKilometer per hour in meter per second.
MphMiles per hour in meter per second.
MachOne Match in meter per second.

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




Latest Courses