diff options
author | erik-loeffler <100943759+erik-loeffler@users.noreply.github.com> | 2022-08-15 09:54:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-15 09:54:10 +0200 |
commit | 504d47a5a03f60cd54425cfd97fbff750a3f9061 (patch) | |
tree | 74aef248a603bad26b825371af8526b008807950 /buch/papers/lambertw/Bilder/Abstand.py | |
parent | Merge pull request #3 from haddoucher/sturmliouville/erik-branch (diff) | |
parent | Merge pull request #49 from HeadAndToes/master (diff) | |
download | SeminarSpezielleFunktionen-504d47a5a03f60cd54425cfd97fbff750a3f9061.tar.gz SeminarSpezielleFunktionen-504d47a5a03f60cd54425cfd97fbff750a3f9061.zip |
Merge branch 'AndreasFMueller:master' into master
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)) |