Introduction to Mathematical Physics/Statistical physics/Some numerical computation in statistical physics
In statistical physics, mean quantities evaluation can be done using by Monte--Carlo methods. in this section, a simple example is presented.
- select spin to consider.
- evaluate variation of energy associated to a possible split of spin .
- compare a random number between zero and one with probability .
- split spin number (that is do ) i=f and only if .
- use the obtained configuration to compute mean quantities.