Ticket #10964: trac_10964-conjugate_doctest.patch

File trac_10964-conjugate_doctest.patch, 915 bytes (added by burcin, 9 years ago)
  • sage/functions/other.py

    # HG changeset patch
    # User Burcin Erocal <burcin@erocal.org>
    # Date 1306340896 -7200
    # Node ID df8b3185b34b12ef0b519525f9466dd7ced563ec
    # Parent  ceef058f2d756de71375e35a8464975eba83bb7d
    trac 10964: add doctests to check conjugates of symbolic expressions
    containing products with rational exponents
    
    diff --git a/sage/functions/other.py b/sage/functions/other.py
    a b  
    14871487            y
    14881488            sage: conjugate(sqrt(y))
    14891489            sqrt(y)
     1490
     1491        Check if #10964 is fixed::
     1492
     1493            sage: z= I*sqrt(-3); z
     1494            I*sqrt(-3)
     1495            sage: conjugate(z)
     1496            -I*conjugate(sqrt(-3))
     1497            sage: var('a')
     1498            a
     1499            sage: conjugate(a*sqrt(-2)*sqrt(-3))
     1500            conjugate(a)*conjugate(sqrt(-3))*conjugate(sqrt(-2))
    14901501        """
    14911502        GinacFunction.__init__(self, "conjugate")
    14921503