From 1d49cdbaf6dfb210022a769271810e9cf32f4b47 Mon Sep 17 00:00:00 2001 From: leobr Date: Thu, 20 Oct 2022 14:44:10 +0200 Subject: [PATCH] continued with task 4 --- Schenk_Brandenberger_S3_Aufg4.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Schenk_Brandenberger_S3_Aufg4.py b/Schenk_Brandenberger_S3_Aufg4.py index be34cdf..ffd9627 100644 --- a/Schenk_Brandenberger_S3_Aufg4.py +++ b/Schenk_Brandenberger_S3_Aufg4.py @@ -3,4 +3,13 @@ import matplotlib.pyplot as plt import math def h(x): - pass \ No newline at end of file + return math.sqrt(100 * math.pow(x,2) - 200 * x + 99) +xStart = 1.1 +xStop = 1.31 +xStep = math.pow(10,-7) + +x = np.arange(xStart,xStop + xStep,xStep) +y = [h(x_val) for x_val in x] + +plt.plot(x,y, label='h(x)') +plt.show()