aboutsummaryrefslogtreecommitdiffstats
path: root/buch/papers/lambertw/Bilder/Abstand.py
diff options
context:
space:
mode:
authorKuster Yanik <yanik.kuster@ost.ch>2022-08-02 21:14:53 +0200
committerKuster Yanik <yanik.kuster@ost.ch>2022-08-02 21:14:53 +0200
commit8dc531ac53ae1b085482c9f1bda6001ca803c164 (patch)
treedcaee2cef382a19abc79ca4fb11bf0a66185c2d3 /buch/papers/lambertw/Bilder/Abstand.py
parentpolished teil0 und teil1, created a new figure Strategie.pdf (diff)
downloadSeminarSpezielleFunktionen-8dc531ac53ae1b085482c9f1bda6001ca803c164.tar.gz
SeminarSpezielleFunktionen-8dc531ac53ae1b085482c9f1bda6001ca803c164.zip
Created python files for graphics. Created addtional subsection verlockende Intuition
Diffstat (limited to 'buch/papers/lambertw/Bilder/Abstand.py')
-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))