Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
.idea
1 change: 0 additions & 1 deletion README.md

This file was deleted.

12 changes: 9 additions & 3 deletions Kower/DUN/main.py → odwzorowania_unimodalne_kwadratowe.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@


# Parametry, które trzeba ręcznie wybrać
r = 2.3 # parametr kontolny
x0 = 0.4 # punkt początkowy
r = 3 # parametr kontolny
x0 = 0.61 # punkt początkowy
rzad = 1 # rząd złożenia


def y(xx): return r * xx * (1 - xx)
# Odkomentuj odwzorowanie, które cię interesuje
# def y(xx): return r * xx * (1 - xx) # Odwzorowanie logistyczne
# def y(xx): return 1 - 2 * np.abs(xx - 1 / 2) # TentMap
# def y(xx): return 2 * xx % 1 # ModMap


def zl(iks):
Expand All @@ -33,6 +36,7 @@ def zl(iks):
def ploty():
global x0
global text
global text_x0
x0 = x00
ax.plot(x, zl(x))

Expand All @@ -42,6 +46,7 @@ def ploty():
ax.plot([x0, x0], [0, zl(x0)], color='green')

text = ax.text(1, 1, f'n = {n}')
text_x0 = ax.text(1, 0.5, f'xn = {x0}')


ploty()
Expand All @@ -54,6 +59,7 @@ def update(event):

n += 1
text.set_text(f'n = {n}')
text_x0.set_text(f'xn = {x0}')

ax.plot([x0, zl(x0)], [zl(x0), zl(x0)], color='green') # kreska pozioma
ax.plot([zl(x0), zl(x0)], [zl(x0), zl(zl(x0))], color='green') # kreska pionowa
Expand Down