Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Logistic map
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Graphical representation === The [[bifurcation diagram]] for the logistic map can be visualized with the following [[Python (programming language)|Python]] code: <syntaxhighlight lang="python3" line="1"> import numpy as np import matplotlib.pyplot as plt interval = (2.8, 4) # start, end accuracy = 0.0001 reps = 600 # number of repetitions numtoplot = 200 lims = np.zeros(reps) fig, biax = plt.subplots() fig.set_size_inches(16, 9) lims[0] = np.random.rand() for r in np.arange(interval[0], interval[1], accuracy): for i in range(reps - 1): lims[i + 1] = r * lims[i] * (1 - lims[i]) biax.plot([r] * numtoplot, lims[reps - numtoplot :], "b.", markersize=0.02) biax.set(xlabel="r", ylabel="x", title="logistic map") plt.show() </syntaxhighlight>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)