diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4befed3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.DS_Store +.idea diff --git a/README.md b/README.md deleted file mode 100644 index 9121d1e..0000000 --- a/README.md +++ /dev/null @@ -1 +0,0 @@ -# WUTcoding \ No newline at end of file diff --git a/Kower/DUN/main.py b/odwzorowania_unimodalne_kwadratowe.py similarity index 77% rename from Kower/DUN/main.py rename to odwzorowania_unimodalne_kwadratowe.py index fd8288c..66cc39f 100644 --- a/Kower/DUN/main.py +++ b/odwzorowania_unimodalne_kwadratowe.py @@ -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): @@ -33,6 +36,7 @@ def zl(iks): def ploty(): global x0 global text + global text_x0 x0 = x00 ax.plot(x, zl(x)) @@ -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() @@ -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