Skip to content

Commit

Permalink
Fix review issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximSmolskiy committed Dec 24, 2024
1 parent e6ed32e commit 5aba01b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions physics/speeds_of_gas_molecules.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
speeds of particles in an ideal gas.
The distribution is given by the following equation:
f(v) = (M/2πRT)^(3/2) * 4πv^2 * e^(-Mv^2/2RT)
.. math:: f(v) = \left(\frac{M}{2 \pi RT}\right)^{\frac{3}{2}} \cdot 4 \pi v^2
\cdot e^{-\frac{Mv^2}{2RT}}
Expand All @@ -20,19 +22,25 @@
The average speed can be calculated by integrating the Maxwell-Boltzmann distribution
from 0 to infinity and dividing by the total number of molecules. The result is:
v_avg = √(8RT/πM)
.. math:: v_{avg} = \sqrt{\frac{8RT}{\pi M}}
The most probable speed is the speed at which the Maxwell-Boltzmann distribution
is at its maximum. This can be found by differentiating the Maxwell-Boltzmann
distribution with respect to :math:`v` and setting the result equal to zero.
The result is:
v_mp = √(2RT/M)
.. math:: v_{mp} = \sqrt{\frac{2RT}{M}}
The root-mean-square speed is another measure of the average speed
of the molecules in a gas. It is calculated by taking the square root
of the average of the squares of the speeds of the molecules. The result is:
v_rms = √(3RT/M)
.. math:: v_{rms} = \sqrt{\frac{3RT}{M}}
Here we have defined functions to calculate the average and
Expand Down

0 comments on commit 5aba01b

Please sign in to comment.