Guest User

Untitled

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