Advertisement
Guest User

mandelbrot in python

a guest
Mar 9th, 2012
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. def mandel(c):
  2.         z=0
  3.         for h in range(0,20):
  4.             z = z**2 + c
  5.             if abs(z) > 2:
  6.                 break
  7.         if abs(z) >= 2:
  8.             return False
  9.         else:
  10.             return True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement