Continued BACH

This commit is contained in:
Marius Drechsler 2024-08-12 20:28:04 +02:00
parent 160309eff7
commit b0399c4675
7 changed files with 1193 additions and 9 deletions

View file

@ -0,0 +1,11 @@
import csv
import numpy as np
import math
with open('z_distribution.csv', "w") as csvfile:
writer = csv.writer(csvfile)
for i in np.linspace(-10, 10, 1000):
calculation = 2/math.sqrt(math.pi) * math.exp(-(i**2)/4) * math.erf(i/2)
if i < 0:
calculation = calculation * -1
writer.writerow([i, calculation])