From 4396381a8850cb4ba444f079b3bb882b487c6946 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Sat, 24 Sep 2022 19:18:32 +0200 Subject: [PATCH] Solved Task 1.1 --- roman_schenk_S1_Aufg1.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 roman_schenk_S1_Aufg1.py diff --git a/roman_schenk_S1_Aufg1.py b/roman_schenk_S1_Aufg1.py new file mode 100644 index 0000000..291b122 --- /dev/null +++ b/roman_schenk_S1_Aufg1.py @@ -0,0 +1,15 @@ +import numpy as np +import matplotlib.pyplot as plt + + +def plot_f(xmin, xmax, xsteps): + x = np.arange(xmin, xmax + xsteps, xsteps) + f = np.array(x**5-5*x**4-30*x**3+110*x**2+29*x-105) + plt.plot(x, f) + plt.xlim(-11, 11) + plt.xticks(np.arange(min(x), max(x) + 1, 1.0)) + plt.ylim(-1300, 1300) + plt.grid(markevery=1) + plt.show() + +plot_f(-10, 10, 0.1) \ No newline at end of file