[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: Plotting / animating Clifford attractors

**From**: |
Ardid, Salva |

**Subject**: |
Re: Plotting / animating Clifford attractors |

**Date**: |
Sun, 8 Sep 2019 12:37:37 +0000 |

El dissabte, 7 de setembre de 2019, a les 20:38:53 EDT, RT va escriure:
I'm trying to plot and animate some Clifford attractors and I'm having
problems with the syntax / equation. The image that is produce looks
nothing like the website images and idea how I can adjust the code?
What they look like along with the equation variables
http://paulbourke.net/fractals/clifford/
Code: I'm using:
x=1;
y=1;
t= linspace (0,1000);
a = -1.24458; b = -1.25191; c = -1.815908; d = -1.90866;
x=sin(a*y.*t)+c*cos(x.*t);
y=sin(b*x.*t)+d*cos(y.*t);
plot(x,y)
Did you see the link to the source code in C by Paul Richards?
http://paulbourke.net/fractals/clifford/paul_richards/main.cpp