[Lab] Lorenz Curve

The Lorenz Curve.
An equation i wanted to do for a long time.I knew i had to try one.
Discovered by Edward Norton Lorenz, this shape is a mathmatical wonder.

it looks like:

Lorenz Curve

Here is the code which makes it all run:

View CodeACTIONSCRIPT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//lorenz constants
var step:Number = 0.005;
var sigma:Number = 10.0;
var rho:Number = 28.0;
var beta:Number = 8.0 / 3.0;
 
//lorenz equation:
x1=x0+step*sigma*(y0-x0);
y1=y0+step*(x0*(rho-z0)-y0);
z1=z0+step*(x0*y0-beta*z0);
 
x0=x1;
y0=y1;
z0=z1;

And here is the result in my demo engine:

This movie requires Flash Player 9

Comments are closed.


Categories
Archives
LinkedIn
R. Kollau