From 8dc531ac53ae1b085482c9f1bda6001ca803c164 Mon Sep 17 00:00:00 2001 From: Kuster Yanik Date: Tue, 2 Aug 2022 21:14:53 +0200 Subject: Created python files for graphics. Created addtional subsection verlockende Intuition --- buch/papers/lambertw/Bilder/Abstand.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 buch/papers/lambertw/Bilder/Abstand.py (limited to 'buch/papers/lambertw/Bilder/Abstand.py') 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)) -- cgit v1.2.1