Homework Statement
Lo,Im stuck on how to retrieve the specific heat capacity from an MC simulation, with the metropolis algorithm. I want my graph to look something like this:
https://i.stack.imgur.com/NXeXs.png
Homework Equations
C_v = ((<E^2>-<E>^2)/T^2
The Attempt at a Solution
My code is...