Skip to content

Instantly share code, notes, and snippets.

Avatar

Sofía sofinico

View GitHub Profile
@sofinico
sofinico / ising2018_2.py
Last active Jul 28, 2018 — forked from nparza/ising2018.py
Ising Baby
View ising2018_2.py
#%%
import numpy as np
from matplotlib import pyplot as plt
from datetime import datetime
#%%
def calcMagnet(S):
View ising2018.py
#%%
import numpy as np
from matplotlib import pyplot as plt
#%%
def calcMagnet(S):
M = np.sum(S)
return M