x' = x - a * x * dt + a * y * dt
y' = y + b * x * dt - y * dt - z * x * dt
z' = z - c * z * dt + x * y * dt
Lorenz showed that the smallest number of linear differential equations that can produce chaos is three. As short as these equations are, they can't be solved with calculus. The shape of the attractor is controlled by the variables a, b, and c. If you decrease dt, the lines will be smoother, though it will take longer to draw. Dt must be a small number greater than zero.
There are two sets of values for the initial x, y, and z. One controls the purple line and the other controls the yellow line. They are currently set to be very close so that you can see the butterfly effect. Set the number of iterations to a small number, such as 100. The two paths will be nearly identical. (One will probably cover up the other, but you can zoom in to see that they are slightly different.) Increase the number of iterations. They will begin to move apart. Eventually, they will diverge completely and look nothing like eachother.
The equations for this attractor are:
x' = y + 1 + 1.4 x ^ 2
y' = .3 x