Simulation of Brownian Motion by the Python Programming Language and Its'Application
Brownian motion provides an important basis for the establishment of the microscopic model of matter,is the basis for the development of molecular motion theory and statistical mechanics.Based on the Python Programming language,this paper simulates the relationship between the mean variance of Brownian motion and time,as well as the distribution of the displacement in the x direction after the average of all corresponding points on each random motion trajectory.The conclusions drawn are con-sistent with those derived from the theory,and the essence of Brownian motion is intuitively explained.In addition,Boltzmann constants are derived based on experimental data for certain proteins in the cel-lular world.