From ecd625aaff50747d0d909ba776e10721e99428e0 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Thu, 20 Oct 2022 16:03:19 +0200 Subject: [PATCH] started Task 4 --- Schenk_Brandenberger_S3_Aufg4.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Schenk_Brandenberger_S3_Aufg4.py b/Schenk_Brandenberger_S3_Aufg4.py index 41b22fc..6fcb542 100644 --- a/Schenk_Brandenberger_S3_Aufg4.py +++ b/Schenk_Brandenberger_S3_Aufg4.py @@ -11,8 +11,7 @@ def h1(x): def h1_diff(x): - return (100 * x - 100) / math.sqrt(100 * math.pow(x, 2) - 200 * x + 99) - + return (100 * x - 100) / math.sqrt((10*x-11)*(10*x-9)) def h2(x): return math.sqrt((10 * x - 9) * (10 * x - 11)) @@ -30,10 +29,10 @@ x = np.arange(xStart, xStop + xStep, xStep) y1 = [h1(x_val) for x_val in x] y2 = [h2(x_val) for x_val in x] -y3 = [kondnumb(x_val) for x_val in x] +# y3 = [kondnumb(x_val) for x_val in x] -plt.yscale('log', base=10) -plt.plot(x, y3, label='Konditionszahl') +# plt.yscale('log', base=10) +# plt.plot(x, y3, label='Konditionszahl') plt.title('4.b)') plt.legend() plt.figure()