diff --git a/val.py b/val.py new file mode 100644 index 0000000000000000000000000000000000000000..cac86311831972cee5b53ef5c361cb59af2788fa --- /dev/null +++ b/val.py @@ -0,0 +1,39 @@ +# To add a new cell, type '# %%' +# To add a new markdown cell, type '# %% [markdown]' + +# %% +from matplotlib import pyplot as plt +import numpy as np + + +# %% +file = open("values.txt","r") + + +# %% +f = file.readline() +print(f) +niter = int(f) +g = [0]*niter +for i in range (0, niter): + g[i]= file.readline() + g[i]=float(g[i]) + +file.close() +print(g) + + + +# %% +p= np.arange(1,niter+1) +print(p) + + +# %% +plt.plot(p,g,'r-') + + +# %% + + +