static double CalculateHeatCapacity(SpinSystem system, double Energy, double SquareEnergy) { return((SquareEnergy - Math.Pow(Energy, 2)) / (system.Temp * system.Temp)); }
static public double CheckSwap(SpinSystem first, SpinSystem second) { double test = (first.OldEnergy - second.OldEnergy) * ((1 / first.Temp) - (1 / second.Temp)); return(Math.Pow(Math.E, test)); }
static void TaskAsync(object system) { SpinSystem test = (SpinSystem)system; test.SwapSpin(); }