By simulating collisions between billiard balls in a closed box, we can model the velocity distribution of air molecules in a gas, and recover the Boltzmann distribution of gas molecule speeds.
Code: github.com/lukepolson/youtube...
Discord Server:
/ discord
3 июл 2024