From fd66402c90a63cf8ce455c3614b9160884f74c61 Mon Sep 17 00:00:00 2001 From: Hong-Phuc Bui <hong-phuc.bui@htwsaar.de> Date: Wed, 11 Jun 2025 16:39:08 +0200 Subject: [PATCH] Vorlesung 10.6 --- polymonial/polynomial_test.py | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/polymonial/polynomial_test.py b/polymonial/polynomial_test.py index 2fa1f53..7d5dbd9 100644 --- a/polymonial/polynomial_test.py +++ b/polymonial/polynomial_test.py @@ -1,4 +1,6 @@ -from polynomial import Polynomial +from polynomial import Polynomial, plot_polynomial +import turtle + EPSILON = 0.001 def test_polynomial_representation(): @@ -46,6 +48,15 @@ assert abs(pc - ec) < EPSILON +def GGGGGG_plot_polynomial(): + p = Polynomial(0, 0, 1) + t = turtle.Turtle() + width,height = 1000,1000 + turtle.screensize(width,height) + plot_polynomial(t, p, width=width / 2, height=height / 2) + t.screen.mainloop() + if __name__ == "__main__": #test_evaluate_2() - test_polynomial_add() \ No newline at end of file + #test_plot_polynomial() + pass \ No newline at end of file -- Gitblit v1.10.0