Ticket #9891: trac_9891-substitute.patch

File trac_9891-substitute.patch, 654 bytes (added by burcin, 10 years ago)

add doctest

  • sage/symbolic/expression.pyx

    # HG changeset patch
    # User Burcin Erocal <burcin@erocal.org>
    # Date 1284937558 -7200
    # Node ID 04293abe2821b1221f76d32f1e2fb2e3907c6741
    # Parent  1f33165131c565ccac36d8f93b6290a88725882b
    trac 9891: add doctest for a fix in the substitution routines in pynac.
    
    diff --git a/sage/symbolic/expression.pyx b/sage/symbolic/expression.pyx
    a b  
    32773277            6
    32783278            sage: D
    32793279            {v: 2}
     3280
     3281        Check if #9891 is fixed::
     3282
     3283            sage: exp(x).subs(x=log(x))
     3284            x
    32803285        """
    32813286        cdef dict sdict = {}
    32823287        if in_dict is not None: