Original Post
I've been working on some fractal code to make a Julia set image and my iterative code looks something like this while ((INC < INCMAX) && (T > 2)) { INC++; TA = (float)(A*A) - (B*B) + C; TB = (float)(2*A*B) + D; A = TA; B = TB; T = (float)sqrt((A*A)+(B*B)); } Where T is the Threshold, and TA and TB are temporary values. I am using the points of the screen as my A and B (converted to -1.5 to 1.5 nomalised space) and C and D are both 0.356. My problem is that the functions all expand and never collapse in (expanding to huge values that can't be stored too). I've narrowed down the problem to just this loop. Could anyone clue me into why this isn't working? Thanks