diff options
author | Andreas Müller <andreas.mueller@ost.ch> | 2022-08-05 09:17:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-05 09:17:01 +0200 |
commit | c73d280e747ab1c894736c659e0fe9644a59d14a (patch) | |
tree | 0182b5518253369b97339f438bd31f955b596a20 /buch/papers/lambertw/Bilder/Abstand.py | |
parent | Merge pull request #41 from JODBaer/master (diff) | |
parent | added new subsection wird das Ziel erreicht? (diff) | |
download | SeminarSpezielleFunktionen-c73d280e747ab1c894736c659e0fe9644a59d14a.tar.gz SeminarSpezielleFunktionen-c73d280e747ab1c894736c659e0fe9644a59d14a.zip |
Merge pull request #42 from daHugen/master
Der 4. pull request der Lambert W Gruppe
Diffstat (limited to 'buch/papers/lambertw/Bilder/Abstand.py')
-rw-r--r-- | buch/papers/lambertw/Bilder/Abstand.py | 18 |
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)) |