go ahead... be a heretic | |
PerlMonks |
Re: Wrong output on linux, ok on Win32by shmem (Chancellor) |
on Nov 30, 2006 at 16:29 UTC ( [id://586987]=note: print w/replies, xml ) | Need Help?? |
Animate it ;-)
Try perl mandel.pl 13. If I pass 99, there'll be a block of zeroes at the end. <update> It's not an overflow issue. As the area delimiting the mandelbrot converges to a line with increased iterations over the inner loop, there's not enough resolution to draw it. You can skip the outer area exiting the inner loop as soon as $d**2+$e**2>4
I wonder how that works on your windows box, though. </update> --shmem _($_=" "x(1<<5)."?\n".q·/)Oo. G°\ / /\_¯/(q / ---------------------------- \__(m.====·.(_("always off the crowd"))."· ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In Section
Seekers of Perl Wisdom
|
|