diff options
author | Kuster Yanik <yanik.kuster@ost.ch> | 2022-08-02 21:14:53 +0200 |
---|---|---|
committer | Kuster Yanik <yanik.kuster@ost.ch> | 2022-08-02 21:14:53 +0200 |
commit | 8dc531ac53ae1b085482c9f1bda6001ca803c164 (patch) | |
tree | dcaee2cef382a19abc79ca4fb11bf0a66185c2d3 /buch/papers/lambertw/Bilder/konvergenz.py | |
parent | polished teil0 und teil1, created a new figure Strategie.pdf (diff) | |
download | SeminarSpezielleFunktionen-8dc531ac53ae1b085482c9f1bda6001ca803c164.tar.gz SeminarSpezielleFunktionen-8dc531ac53ae1b085482c9f1bda6001ca803c164.zip |
Created python files for graphics. Created addtional subsection verlockende Intuition
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 |