in reply to Re: Re: (Golf) Mandelbrot Fractal
in thread (Golf) Mandelbrot Fractal
perl -Mconstant=Z,20 -l map{$i=$_/Z,print map{$r=$;=$_/Z;$z=$i;$n=$z*$z,$m=$r*$r,$z=2*$r*$z+$i +,$r=$m-$n+$;for a..z;$m<4?$":"+"}-46..Z}-19..Z
116 @ Wed May 8 19:50:10 EDT 2002
map{$i=$_/Z,print map{$r=$;=$_/Z;$z=$i;$n=$z*$z,$z=2*$r*$z+$i,$r=($m=$ +r*$r)-$n+$;for a..z;$m<4?$":"+"}-46..Z}-19..Z
BTW, I like the use of $; :-)
UPDATE: Changed outside range from -20..Z to -19..Z to eliminate extra lines of +.
--
perl -pew "s/\b;([mnst])/'$1/g"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: (Golf) Mandelbrot Fractal
by hagus (Monk) on May 09, 2002 at 00:01 UTC | |
by educated_foo (Vicar) on May 09, 2002 at 00:34 UTC |