help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Plotting / animating Clifford attractors


From: Doug Stewart
Subject: Re: Plotting / animating Clifford attractors
Date: Sat, 7 Sep 2019 20:53:23 -0400



On Sat, Sep 7, 2019 at 8:39 PM RT <address@hidden> 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 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)


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.


--
--



--
DASCertificate for 206392


reply via email to

[Prev in Thread] Current Thread [Next in Thread]