This shows you the differences between two versions of the page.

Both sides previous revision Previous revision | |||

cs190c:project3 [2008/02/28 08:05] seh |
cs190c:project3 [2008/02/29 11:57] (current) seh |
||
---|---|---|---|

Line 103: | Line 103: | ||

Function ising_model returns three values: M_aver, the average magnetization, M2_aver, the average square magnetizations, and the associated variance. The magnetization of a lattice is the sum of the magnetization of its particles (the change of one particle thus changes the magnetization by 2). Function ising_model records the magnetization and the square of the magnetization after each trial (this means storing steps*N*N values). M_aver, M2_aver, and the variance are computed just before ising_model returns. You can use any the of numerically stable methods seen in Lab 8 to compute the variance. | Function ising_model returns three values: M_aver, the average magnetization, M2_aver, the average square magnetizations, and the associated variance. The magnetization of a lattice is the sum of the magnetization of its particles (the change of one particle thus changes the magnetization by 2). Function ising_model records the magnetization and the square of the magnetization after each trial (this means storing steps*N*N values). M_aver, M2_aver, and the variance are computed just before ising_model returns. You can use any the of numerically stable methods seen in Lab 8 to compute the variance. | ||

+ | |||

Line 148: | Line 149: | ||

* How does it change with varying energies? | * How does it change with varying energies? | ||

* Is the distribution the same as for the ideal gas model? | * Is the distribution the same as for the ideal gas model? | ||

- | * Can you estimate the distribution parameters for at least one total energy? | ||

* Magnetization_versus_Energy graph | * Magnetization_versus_Energy graph | ||

* Which curves are most stable? | * Which curves are most stable? |