comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: mandelbrot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: mandelbrot [message #70434] Thu, 15 April 2010 07:16 Go to next message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
On Apr 15, 4:39 am, Dave Poreh <d.po...@gmail.com> wrote:
> On Apr 14, 8:20 am, Paolo <pgri...@gmail.com> wrote:
>
>
>
>> On Apr 14, 7:49 am, a <oxfordenergyservi...@googlemail.com> wrote:
>
>>> I was looking for a mandelbrot set generator for idl to show off idl
>>> to someone
>
>>> I found thishttp://rosettacode.org/wiki/Mandelbrot_set#IDLbutI
>>> remember seeing a more efficient version (just a few lines) once.
>
>>> anybody got a mandelbrot set generator in the fewest lines?
>
>>> Russ
>
>> This comes pretty close to a minimum set of commands:
>
>> ;setup coordinates
>> x=findgen(512)/511*4-2
>> xx=x#(x*0+1)
>> zz=complex(xx,transpose(xx))
>> cc=zz
>
>> ;compute set for n=100 iterations
>> niter=100
>> for i=0,niter-1 do zz=zz*zz+cc
>> inside=where(abs(zz) LE 2,complement=outside)
>
>> ;this just for display
>> mand=xx*0
>> mand[inside]=1
>> tvscl,mand
>
>> Ciao,
>> Paolo
>
> Any help with KOCH curve?

what have you tried? how did it fail?

Paolo
Re: mandelbrot [message #70436 is a reply to message #70434] Thu, 15 April 2010 01:39 Go to previous messageGo to next message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
On Apr 14, 8:20 am, Paolo <pgri...@gmail.com> wrote:
> On Apr 14, 7:49 am, a <oxfordenergyservi...@googlemail.com> wrote:
>
>> I was looking for a mandelbrot set generator for idl to show off idl
>> to someone
>
>> I found thishttp://rosettacode.org/wiki/Mandelbrot_set#IDLbutI
>> remember seeing a more efficient version (just a few lines) once.
>
>> anybody got a mandelbrot set generator in the fewest lines?
>
>> Russ
>
> This comes pretty close to a minimum set of commands:
>
> ;setup coordinates
> x=findgen(512)/511*4-2
> xx=x#(x*0+1)
> zz=complex(xx,transpose(xx))
> cc=zz
>
> ;compute set for n=100 iterations
> niter=100
> for i=0,niter-1 do zz=zz*zz+cc
> inside=where(abs(zz) LE 2,complement=outside)
>
> ;this just for display
> mand=xx*0
> mand[inside]=1
> tvscl,mand
>
> Ciao,
> Paolo

Any help with KOCH curve?
Re: mandelbrot [message #70441 is a reply to message #70436] Wed, 14 April 2010 08:20 Go to previous messageGo to next message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
On Apr 14, 7:49 am, a <oxfordenergyservi...@googlemail.com> wrote:
> I was looking for a mandelbrot set generator for idl to show off idl
> to someone
>
> I found thishttp://rosettacode.org/wiki/Mandelbrot_set#IDLbut I
> remember seeing a more efficient version (just a few lines) once.
>
> anybody got a mandelbrot set generator in the fewest lines?
>
> Russ

This comes pretty close to a minimum set of commands:

;setup coordinates
x=findgen(512)/511*4-2
xx=x#(x*0+1)
zz=complex(xx,transpose(xx))
cc=zz

;compute set for n=100 iterations
niter=100
for i=0,niter-1 do zz=zz*zz+cc
inside=where(abs(zz) LE 2,complement=outside)

;this just for display
mand=xx*0
mand[inside]=1
tvscl,mand


Ciao,
Paolo
Re: mandelbrot [message #70442 is a reply to message #70441] Wed, 14 April 2010 05:33 Go to previous messageGo to next message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
On Apr 14, 4:49 am, a <oxfordenergyservi...@googlemail.com> wrote:
> I was looking for a mandelbrot set generator for idl to show off idl
> to someone
>
> I found thishttp://rosettacode.org/wiki/Mandelbrot_set#IDLbut I
> remember seeing a more efficient version (just a few lines) once.
>
> anybody got a mandelbrot set generator in the fewest lines?
>
> Russ

see this:http://groups.google.com/group/comp.lang.idl-pvwave/
browse_thread/thread/c4b73eeabdee2b13/4ac0e925bab3a9fb?
lnk=gst&q=fractal+poreh#4ac0e925bab3a9fb
Cheers
Dave
Re: mandelbrot [message #70517 is a reply to message #70434] Fri, 16 April 2010 06:44 Go to previous message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
On Apr 15, 7:16 am, Paolo <pgri...@gmail.com> wrote:
> On Apr 15, 4:39 am, Dave Poreh <d.po...@gmail.com> wrote:
>
>
>
>
>
>> On Apr 14, 8:20 am, Paolo <pgri...@gmail.com> wrote:
>
>>> On Apr 14, 7:49 am, a <oxfordenergyservi...@googlemail.com> wrote:
>
>>>> I was looking for a mandelbrot set generator for idl to show off idl
>>>> to someone
>
>>>> I found thishttp://rosettacode.org/wiki/Mandelbrot_set#IDLbutI
>>>> remember seeing a more efficient version (just a few lines) once.
>
>>>> anybody got a mandelbrot set generator in the fewest lines?
>
>>>> Russ
>
>>> This comes pretty close to a minimum set of commands:
>
>>> ;setup coordinates
>>> x=findgen(512)/511*4-2
>>> xx=x#(x*0+1)
>>> zz=complex(xx,transpose(xx))
>>> cc=zz
>
>>> ;compute set for n=100 iterations
>>> niter=100
>>> for i=0,niter-1 do zz=zz*zz+cc
>>> inside=where(abs(zz) LE 2,complement=outside)
>
>>> ;this just for display
>>> mand=xx*0
>>> mand[inside]=1
>>> tvscl,mand
>
>>> Ciao,
>>> Paolo
>
>> Any help with KOCH curve?
>
> what have you tried? how did it fail?
>
> Paolo

I just want to know how we could produce it (KOCH curve) in IDL.
Dave
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Statistics on an image?
Next Topic: Re: Multi-core techniques

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 11:06:26 PDT 2025

Total time taken to generate the page: 0.85616 seconds