Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. def ellipse(numPoints, genX=np.linspace, HALF_WIDTH=10, HALF_HEIGHT=6.5):
  2. xs = 10.*genX(-1,1,numPoints)
  3. ys = 6.5*np.sqrt(1-(xs**2))
  4. return(xs, ys, "-")
  5.  
  6. sqrt(0) = 0
  7. 6.5*sqrt(1- (-1**2)) = 0
  8.  
  9. >>> import numpy as np
  10. >>> np.sqrt(-1)
  11. nan
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement