that code must be posted in the
</> Preformatted text
from the editor menu
Zx = xx-yy;
Zy = 2xy;
this code can not run.
BUT
should it mean:
Zx = x*x-y*y;
Zy = 2*x*y;
the code runs and produce your NaN error.
try
println( "float min: "+Float.MIN_VALUE+ " max: "+Float.MAX_VALUE);
that tells you the range of possible FLOAT numbers
your loops do
x = Zx = x*x-y*y;
after 7 loops that value is out of range…
and the position you calculate for the points
point(A,B);
is always 0 , 0
sorry but to run that math 20 000 000 times ( points ) is questionable