updated functions

This commit is contained in:
ASPP Student 2025-09-23 19:41:37 +03:00
parent 671fcd2145
commit 5205ba24f2
2 changed files with 23 additions and 14 deletions

View file

@ -1,4 +1,12 @@
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