IndexError: invalid index to scalar variable. Maxwell-Boltzmann distribution

15 views Asked by At

Currently trying to model a Maxwell-Boltzmann distribution, c and d are two randomly chosen particles from the system, and a and b are their respective energies. Trying to create a function that simulates 10 collisions that subtracts one energy off particle c if it is not at the ground state, then adds this to the energy of particle d. Help would be much appreciated. Code cell 1 Code cell 2

Everything is detailed in the details of the problem.

0

There are 0 answers