On Thu, Aug 8, 2013 at 4:21 PM, Sean Conner <spc at conman.org> wrote:
Oh crap! Well, for the values given, that *is* the
correct output, but
the one lines that reads:
printf("%d\n",mainloop(A,B,4.0,4.0));
should read:
printf("%d\n",mainloop(A,B,-0.8659,4.0));
So about half of the output lines are 32767.
$ time ./prog >output
real 0m0.201s
user 0m0.196s
sys 0m0.003s
$ grep -v 32767 output | wc -l
127187
I tried changing MAX to 256, sticking a PGM header on it ("P5 500 500
255"), converting it to a png, and viewing it, but it didn't seem very
interesting. Maybe my expectations were too high.