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/konvergenz.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 '')
-rw-r--r-- | buch/papers/lambertw/Bilder/konvergenz.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/buch/papers/lambertw/Bilder/konvergenz.py b/buch/papers/lambertw/Bilder/konvergenz.py new file mode 100644 index 0000000..dac99a7 --- /dev/null +++ b/buch/papers/lambertw/Bilder/konvergenz.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +""" +Created on Sun Jul 31 14:34:13 2022 + +@author: yanik +""" + +import numpy as np +import matplotlib.pyplot as plt + +t = 0 +phi = np.linspace(np.pi/2, 3*np.pi/2, 10**5) +x0 = 1 +y0 = -2 + +def D(t): + return (x0+t*np.cos(phi))*np.cos(phi)+(y0+t*(np.sin(phi)-1))*(np.sin(phi)-1)/(np.sqrt((x0+t*np.cos(phi))**2+(y0+t*(np.sin(phi)-1))**2)) + + +plt.plot(phi, D(t))
\ No newline at end of file |