2025-plovdiv-testing-debugging/testing_project/logistic.py
2025-09-23 19:41:37 +03:00

12 lines
No EOL
169 B
Python

def f(x,r):
return r * x * (1-x)
def iterate_f(it, x, r):
result = [x]
for i in range(it):
x = f(x, r)
result.append(x)
return result