• Remix
  • Share
  • New Entry

  • Simon Thor

  • /
  • 2D Lorentz attractor in 107 characters

on 14 Oct 2022
  • 1
  • 18
  • 1
  • 0
  • 107
d=.01;
x=1;
y=1;
z=0;
hold;
Current plot held
for q=0:1e4
i=x;
j=y;
k=z;
x=x+10*(y-x)*d;
y=y+(28*x-y-x*z)*d;
z=z+(x*y-2.5*z)*d;
plot([i x],[j y]);
end
Image
Remix Tree