diff --git a/src/build.js b/src/build.js
index 46a2a9d..f1b84fa 100644
--- a/src/build.js
+++ b/src/build.js
@@ -11,6 +11,7 @@
"../../src/static/video/oscillator.mp4": "build/video",
"../../src/static/video/travelling.mp4": "build/video",
"../../src/static/video/photon.mp4": "build/video",
+ "../../src/static/video/doubleSlit.mp4": "build/video",
"../../src/static/video/localized.mp4": "build/video",
"../../src/static/img/gauss.png": "build/img",
}
diff --git a/src/build.js b/src/build.js
index 46a2a9d..f1b84fa 100644
--- a/src/build.js
+++ b/src/build.js
@@ -11,6 +11,7 @@
"../../src/static/video/oscillator.mp4": "build/video",
"../../src/static/video/travelling.mp4": "build/video",
"../../src/static/video/photon.mp4": "build/video",
+ "../../src/static/video/doubleSlit.mp4": "build/video",
"../../src/static/video/localized.mp4": "build/video",
"../../src/static/img/gauss.png": "build/img",
}
diff --git a/src/presentation/main.md b/src/presentation/main.md
index dbc7d47..fc09d86 100644
--- a/src/presentation/main.md
+++ b/src/presentation/main.md
@@ -487,3 +487,13 @@
;$$ x = \frac{\pi*n}{d} * \frac{h*t}{\pi*m} = \frac{n*h*t}{d*m} = \frac{n*h*s}{d*m*v}$$
;$$ \lambda = \frac{h}{p} = \frac{h}{m*v} $$
;$$ x = \frac{n*s*\lambda}{d} $$
+
+---
+
+### Das Doppelspaltexperiment
+
+$$ x = \frac{n*s*\lambda}{d} $$
+
+
diff --git a/src/build.js b/src/build.js
index 46a2a9d..f1b84fa 100644
--- a/src/build.js
+++ b/src/build.js
@@ -11,6 +11,7 @@
"../../src/static/video/oscillator.mp4": "build/video",
"../../src/static/video/travelling.mp4": "build/video",
"../../src/static/video/photon.mp4": "build/video",
+ "../../src/static/video/doubleSlit.mp4": "build/video",
"../../src/static/video/localized.mp4": "build/video",
"../../src/static/img/gauss.png": "build/img",
}
diff --git a/src/presentation/main.md b/src/presentation/main.md
index dbc7d47..fc09d86 100644
--- a/src/presentation/main.md
+++ b/src/presentation/main.md
@@ -487,3 +487,13 @@
;$$ x = \frac{\pi*n}{d} * \frac{h*t}{\pi*m} = \frac{n*h*t}{d*m} = \frac{n*h*s}{d*m*v}$$
;$$ \lambda = \frac{h}{p} = \frac{h}{m*v} $$
;$$ x = \frac{n*s*\lambda}{d} $$
+
+---
+
+### Das Doppelspaltexperiment
+
+$$ x = \frac{n*s*\lambda}{d} $$
+
+
diff --git a/src/python/doubleSlit.py b/src/python/doubleSlit.py
index 31cdcba..368f22f 100644
--- a/src/python/doubleSlit.py
+++ b/src/python/doubleSlit.py
@@ -12,22 +12,9 @@
m = 1
h = 1
+x = np.linspace(-20, 20, 1000)
+
waveFunction = lambda x, t: sigma / (np.sqrt(sigma**2+(2j*h*t/m))) * np.exp(-x**2/(sigma**2+2j*h*t/m))
-x = np.linspace(-20, 20, 100)
-
-fig, ax = plt.subplots()
-
-line, = ax.plot(x, waveFunction(x, 0))
-
-def animate(i):
- line.set_ydata(waveFunction(x, i * dt / 10))
- return line,
-
-ani = animation.FuncAnimation(
- fig, animate, interval=1000/framerate, blit=True, save_count = framerate * time)
-ani.save(f"{outputFolder}gauss.mp4")
-plt.show()
-
fig, ax = plt.subplots()
ax.set_ylim(0,0.05)
@@ -40,9 +27,9 @@
ani = animation.FuncAnimation(
fig, animate, interval=1000/framerate, blit=True, save_count = framerate * time)
-ani.save(f"{outputFolder}combined.mp4")
+ani.save(f"{outputFolder}doubleSlit.mp4")
plt.show()
-
+exit()
m = 9.1093837e-31 # electron mass
t = 1e-7 # 1 s flight time
d = 1e-8 # 1nm distance between slits