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() #test_plot_polynomial() pass