aboutsummaryrefslogtreecommitdiffstats
path: root/buch/papers/lambertw/Bilder/Abstand.py
diff options
context:
space:
mode:
authorf1bi1n <109807532+f1bi1n@users.noreply.github.com>2022-08-15 20:21:26 +0200
committerGitHub <noreply@github.com>2022-08-15 20:21:26 +0200
commit13e80fa4f6ca5fb0551e2e3adca931d32091cab1 (patch)
tree2793c654e5d5f4556a32c7dfea915fd37c74f59b /buch/papers/lambertw/Bilder/Abstand.py
parent2.Uerbarbeitung, bruch (diff)
parentMerge pull request #50 from ntobler/master (diff)
downloadSeminarSpezielleFunktionen-13e80fa4f6ca5fb0551e2e3adca931d32091cab1.tar.gz
SeminarSpezielleFunktionen-13e80fa4f6ca5fb0551e2e3adca931d32091cab1.zip
Merge branch 'master' into master
Diffstat (limited to '')
-rw-r--r--buch/papers/lambertw/Bilder/Abstand.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/buch/papers/lambertw/Bilder/Abstand.py b/buch/papers/lambertw/Bilder/Abstand.py
new file mode 100644
index 0000000..d787c34
--- /dev/null
+++ b/buch/papers/lambertw/Bilder/Abstand.py
@@ -0,0 +1,18 @@
+# -*- coding: utf-8 -*-
+"""
+Created on Sat Jul 30 23:09:33 2022
+
+@author: yanik
+"""
+
+import numpy as np
+import matplotlib.pyplot as plt
+
+phi = np.pi/2
+t = np.linspace(0, 10, 10**5)
+x0 = 1
+
+def D(t):
+ return np.sqrt(x0**2+2*x0*t*np.cos(phi)+2*t**2-2*t**2*np.sin(phi))
+
+plt.plot(t, D(t))