How to perform a draw in python following a certain distribution, such as Gaussian or Maxwell-Boltzmann distributions?

Asked

Viewed 68 times

-1

My problem is to draw velocity values for a hydrogen molecule according to a Maxwell-Boltzmann distribution that will collide with an electron (with well-defined energy) and will split into two fragments (2 hydrogen atoms). I wanted to have a notion of how to draw velocity values for my initial molecule according to the Maxwell-Boltzmann distribution, entering values of mass of the molecule, temperature and distance from where the collision occurred to the detector.

  • You want to use a continuous Maxwell random variable?

  • In the module documentation random has a specific section on distribution where the Gauss distribution is included. Take a look there, who knows help you.

1 answer

0


Browser other questions tagged

You are not signed in. Login or sign up in order to post.