Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
22553: remove assert
Browse files Browse the repository at this point in the history
  • Loading branch information
rwst committed Mar 9, 2017
1 parent fd5f71a commit 64e05e5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/sage/libs/pynac/pynac.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1784,12 +1784,18 @@ cdef py_atan2(x, y):
sage: plot(real(sqrt(x - 1.*I)), (x,0,1))
Graphics object consisting of 1 graphics primitive
Check that :trac:`22553` is fixed::
sage: arctan2(1.5,-1.300000000000001)
2.284887025407...
sage: atan2(2.1000000000000000000000000000000000000,-1.20000000000000000000000000000000)
2.089942441041419571002776071...
"""
from sage.symbolic.constants import pi, NaN
P = parent(x)
if P is float and parent(y) is not float:
P = RR
assert P is parent(y)
if P is ZZ:
P = RR
pi_n = P(pi)
Expand Down

0 comments on commit 64e05e5

Please sign in to comment.