From dff6d7b7b412d287fab88595d13a13c439f1e177 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Thu, 20 Oct 2022 14:55:43 +0200 Subject: [PATCH] started Task 4 --- Schenk_Brandenberger_S3_Aufg4.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Schenk_Brandenberger_S3_Aufg4.py b/Schenk_Brandenberger_S3_Aufg4.py index ffd9627..eac3991 100644 --- a/Schenk_Brandenberger_S3_Aufg4.py +++ b/Schenk_Brandenberger_S3_Aufg4.py @@ -4,12 +4,15 @@ import math def h(x): return math.sqrt(100 * math.pow(x,2) - 200 * x + 99) -xStart = 1.1 -xStop = 1.31 + xStep = math.pow(10,-7) +xStart = 1.1 + xStep +xStop = 1.31 + x = np.arange(xStart,xStop + xStep,xStep) y = [h(x_val) for x_val in x] plt.plot(x,y, label='h(x)') +plt.legend() plt.show()