# Plotting / animating Clifford attractors Classic List Threaded 7 messages Open this post in threaded view
|

## Plotting / animating Clifford attractors

 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 variableshttp://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)-- --
Open this post in threaded view
|

## Re: Plotting / animating Clifford attractors

 On Sat, Sep 7, 2019 at 8:39 PM RT <[hidden email]> wrote: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 variableshttp://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)What you have programmed is not even close to:xn+1 = sin(a yn) + c cos(a xn)yn+1 = sin(b xn) + d cos(b yn) You must do a loop because the second value in x or y is calculated during the first time through the loop.-- -- -- DAS Open this post in threaded view
|

## Re: Plotting / animating Clifford attractors

Open this post in threaded view
|

## Re: Plotting / animating Clifford attractors

Open this post in threaded view
|