Ticket #8775: trac_8775-conjugate.take2.patch

File trac_8775-conjugate.take2.patch, 1007 bytes (added by burcin, 10 years ago)

apply only this patch

  • sage/functions/other.py

    # HG changeset patch
    # User Burcin Erocal <burcin@erocal.org>
    # Date 1284329518 -7200
    # Node ID 1ff0d1558cf52dbc42c2ae9a70172dee4ec087e5
    # Parent  7dc5bf0e0e1fd74bd8393241859cc93bf64184b7
    trac 8755: fix doctests after restrictions in pynac for automatic application of conjugates to power objects
    
    diff --git a/sage/functions/other.py b/sage/functions/other.py
    a b  
    13361336            sage: x.conjugate().operator() == conjugate
    13371337            True
    13381338
     1339        Check if #8755 is fixed::
     1340
     1341            sage: conjugate(sqrt(-3))
     1342            conjugate(sqrt(-3))
     1343            sage: conjugate(sqrt(3))
     1344            sqrt(3)
     1345            sage: conjugate(sqrt(x))
     1346            conjugate(sqrt(x))
     1347            sage: conjugate(x^2)
     1348            conjugate(x)^2
     1349            sage: var('y',domain='positive')
     1350            y
     1351            sage: conjugate(sqrt(y))
     1352            sqrt(y)
    13391353        """
    13401354        GinacFunction.__init__(self, "conjugate")
    13411355