<sigh> double x = x0, y = y0; int i = 0; while(x*x+y*y <= 4 && i < max_iterations) { double xtemp = x*x - y*y + x0; y = 2*x*y + y0; x = xtemp; i++; } if (i == max_iterations) return -1; return i; -- ~Mike
Post a reply to this message