예제 #1
0
 static double CalculateHeatCapacity(SpinSystem system, double Energy, double SquareEnergy)
 {
     return((SquareEnergy - Math.Pow(Energy, 2)) / (system.Temp * system.Temp));
 }
예제 #2
0
        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));
        }
예제 #3
0
        static void TaskAsync(object system)
        {
            SpinSystem test = (SpinSystem)system;

            test.SwapSpin();
        }