The Ising model is a mathematical tool for modelling spin-spin interactions
on a lattice of sites, where the hamiltonian is given as
We present simplified 1D and 2D versions of these models, where we assume the
external magnetic field to be zero and
We also present a model with nonzero external magnetic field and
Lastly, we plot the hamiltonian after thousands of iterations for various temperatures
in order to show the second-order phase transition which occurs at