Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] - Bifurcation diagram plotter

Author
Message
Neuro Fuzzy
16
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 17th Dec 2011 12:03 Edited at: 11th Aug 2012 11:39


The basic idea is that you start out with a number x. Lets say its .4. Then you assign x as x=x*(1-x) a bunch of times. After a hundred iterations or so the system obviously converges. If you generalize this equation to get x=x*r*(1-x), then as you vary r, you can see that sometimes x converges to a specific value, sometimes it switches forever in between two values, and sometimes it's so chaotic you don't know what's going on.

The bifurcation diagram of an iterative equation like that is the graph of all possible long-term values for varying r.

The magic happens in the "iterate number" function, so switch that one. Try commenting out the other functions that are there.

TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 22nd Dec 2011 00:37
Hey, those graphs are oddly familiar with the mandelbrot set... Coincidence?



TheComet

Neuro Fuzzy
16
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 22nd Dec 2011 08:20
Funny you should say that, there's actually one thing about ratios of sides for chaotic series like these:
http://upload.wikimedia.org/wikipedia/commons/b/b4/Verhulst-Mandelbrot-Bifurcation.jpg
I have no idea why though...

Login to post a reply

Server time is: 2024-04-23 15:03:17
Your offset time is: 2024-04-23 15:03:17