From 3f874ab8b3fe745a249b42da67d6f1d6bea365d0 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Sat, 24 Sep 2022 20:20:39 +0200 Subject: [PATCH] Solved Task 2.1 --- roman_schenk_S1_Aufg2.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/roman_schenk_S1_Aufg2.py b/roman_schenk_S1_Aufg2.py index e976508..789226b 100644 --- a/roman_schenk_S1_Aufg2.py +++ b/roman_schenk_S1_Aufg2.py @@ -15,11 +15,9 @@ def showPlot(xmin, xmax, xsteps): plt.show() def polynom_function(coefficients, x): - n = len(coefficients) - 1 result = 0 for power, coefficient in enumerate(coefficients): result += coefficient * x ** power - power += 1 return result def plot_polynom_function(coefficients, xmin, xmax, xsteps):