Advertisement
Guest User

Untitled

a guest
May 19th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.58 KB | None | 0 0
  1. from math import sqrt
  2. first=[]
  3. for z, x in enumerate(map(lambda x: x/1000.000,range(-1000,1000))):
  4.     i=(int(round(z/100.0)),int(round((sqrt(abs(x))+sqrt(1-x**2))*10)))
  5.     if i not in first:first.append(i)
  6. for z, x in enumerate(map(lambda x: x/1000.000,range(-1000,1000))):
  7.     i=(int(round(z/100.0)),int(round((sqrt(abs(x))-sqrt(1-x**2))*10)))
  8.     if i not in first:first.append(i)
  9. array=[[" " for item in xrange(201)]for item in xrange(401)]
  10. for item in first:array[item[1]][item[0]]="#"
  11. array=array[200:]+array[:200]
  12. for item in array[::-1]:
  13.     if "#" in ''.join(item):print ''.join(item)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement