Metropolis sampling finds Onsager's magnetization
A 16 by 16 grid of spins, each flipped at random by the Metropolis rule, settles at to an average magnetization of . The exact infinite-lattice answer, from Onsager and Yang, is . The critical temperature is where that formula reaches zero.
Look inside this program
- Atlas
The program’s map: every function and which calls which.
There’s no recorded run of this program yet.