From 04fea88860ea305e99173149781e60986fbef5dc Mon Sep 17 00:00:00 2001 From: Evgeniy Napylov <61109747+Talesard@users.noreply.github.com> Date: Fri, 18 Mar 2022 15:50:33 +0300 Subject: [PATCH] Update piyavsky.py --- Decision-Support-Systems/piyavsky.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Decision-Support-Systems/piyavsky.py b/Decision-Support-Systems/piyavsky.py index bf855b6..1510b65 100644 --- a/Decision-Support-Systems/piyavsky.py +++ b/Decision-Support-Systems/piyavsky.py @@ -1,6 +1,3 @@ -def f(x): - return x - def R(x1, x0, z1, z0, m): return 0.5*m*(x1-x0)-(z1+z0)/2 @@ -75,4 +72,4 @@ def f(x): print("x^(i+1) \in (", L[t], L[t+1], ")") x_next =next_x(L[t+1], L[t], f(L[t+1]), f(L[t]), m) print("x^5=", x_next) - print("z^5=", f(x_next)) \ No newline at end of file + print("z^5=", f(x_next))