diff options
author | haddoucher <reda.haddouche@ost.ch> | 2022-08-16 14:36:07 +0200 |
---|---|---|
committer | haddoucher <reda.haddouche@ost.ch> | 2022-08-16 14:36:07 +0200 |
commit | f031b148a79d1dafb0e3405643be05e7a7eb1222 (patch) | |
tree | 3f0c7d27ba90e10874a885cae9026fdbaa0b01e6 /buch/papers/lambertw/Bilder/Abstand.py | |
parent | Update tschebyscheff_beispiel.tex (diff) | |
parent | Merge pull request #5 from haddoucher/sturmliouville/erik-branch (diff) | |
download | SeminarSpezielleFunktionen-f031b148a79d1dafb0e3405643be05e7a7eb1222.tar.gz SeminarSpezielleFunktionen-f031b148a79d1dafb0e3405643be05e7a7eb1222.zip |
Merge remote-tracking branch 'origin/master' into sturmliouville/redabranch
Diffstat (limited to '')
-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)) |