updating book

This commit is contained in:
Morten Hjorth-Jensen
2021-08-26 10:38:31 +02:00
parent e23be69563
commit c20f947816
66 changed files with 13205 additions and 445 deletions
+16
View File
@@ -0,0 +1,16 @@
import numpy as np
from matplotlib import pyplot as plt
# Load in data file
data = np.loadtxt("autocor.dat")
data1 = np.loadtxt("automersenne.dat")
# Make arrays containing x-axis and binding energies as function of A
x = data[:,0]
corr = data[:,1]
corr2 = data1[:,1]
plt.plot(x, corr ,'ro', x, corr2, 'b')
plt.axis([0,1000,-0.2, 1.1])
plt.xlabel(r'$d$')
plt.ylabel(r'$C_d$')
plt.title(r'autocorrelation function for RNG')
plt.savefig('autocorr.pdf')
plt.show()