Skip to content

Commit

Permalink
Update piyavsky.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Talesard authored Mar 18, 2022
1 parent 4460d5a commit 04fea88
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Decision-Support-Systems/piyavsky.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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))
print("z^5=", f(x_next))

0 comments on commit 04fea88

Please sign in to comment.