in reply to Re: Re: (Golf) Mandelbrot Fractal
in thread (Golf) Mandelbrot Fractal

With some bending of the rules(?), we get a little more detail, and 117 chars

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
    Jesus christ ...

    But I think using the constant declaration on the outside is cheating. Hmm!


    --
    Ash OS durbatulk, ash OS gimbatul,
    Ash OS thrakatulk, agh burzum-ishi krimpatul!
    Uzg-Microsoft-ishi amal fauthut burguuli.

      Not cheating, but you have to count it as part of the solution, which puts it back at 134-ish.