Continued BACH
This commit is contained in:
parent
160309eff7
commit
b0399c4675
7 changed files with 1193 additions and 9 deletions
11
data/z_distribution/calculate_function_values.py
Normal file
11
data/z_distribution/calculate_function_values.py
Normal 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])
|
||||
Loading…
Add table
Add a link
Reference in a new issue