# HG changeset patch
# User Burcin Erocal <burcin@erocal.org>
# Date 1287263066 7200
# Node ID 895a3a73d384187f7a4a342db8a35c62a6bf4c1e
# Parent 763f0b56a41de4e048e7e761ba4201990d171873
trac 10062: add doctest to check arctan(0, I*I) > pi, fixed by #10064
diff git a/sage/functions/trig.py b/sage/functions/trig.py
a

b


849  849  sage: arctan2(x,x)._sympy_() 
850  850  atan2(x, x) 
851  851  
852   Check if numerical evaluation works #9913:: 
 852  Check if numerical evaluation works :trac:`9913`:: 
853  853  
854  854  sage: arctan2(0, log(2)).n() 
855  855  3.14159265358979 
… 
… 

868  868  Traceback (most recent call last): 
869  869  ... 
870  870  ValueError: arctan2(0,0) undefined 
871   
 871  
 872  Check if :trac:`10062` is fixed, this was caused by 
 873  ``(I*I)._is_positive()`` returning ``True``:: 
 874  
 875  sage: arctan2(0, I*I) 
 876  pi 
872  877  """ 
873  878  GinacFunction.__init__(self, "arctan2", nargs=2, latex_name=r'\arctan', 
874  879  conversions=dict(maxima='atan2', sympy='atan2')) 