Ticket #10062: trac_10062-doctest.sage-5.10.beta5.patch

File trac_10062-doctest.sage-5.10.beta5.patch, 1.1 KB (added by burcin, 9 years ago)
  • sage/functions/trig.py

    # 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  
    849849            sage: arctan2(x,x)._sympy_()
    850850            atan2(x, x)
    851851
    852         Check if numerical evaluation works #9913::
     852        Check if numerical evaluation works :trac:`9913`::
    853853
    854854            sage: arctan2(0, -log(2)).n()
    855855            3.14159265358979
     
    868868            Traceback (most recent call last):
    869869            ...
    870870            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
    872877        """
    873878        GinacFunction.__init__(self, "arctan2", nargs=2, latex_name=r'\arctan',
    874879                conversions=dict(maxima='atan2', sympy='atan2'))