>>> e = 10.0 ** -7; n = 0; z = c = complex(-0.75, e)
>>> while abs(z) < 2.0:
            n += 1
            z = z * z + c

>>> n * e
3.1415926

Compute π ± e by counting Mandlebrot set iterations :-)


Raymond

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to