Ticket #8943: trac_8943-series.patch

File trac_8943-series.patch, 860 bytes (added by burcin, 11 years ago)
  • sage/symbolic/expression.pyx

    # HG changeset patch
    # User Burcin Erocal <burcin@erocal.org>
    # Date 1304884033 -7200
    # Node ID 2f720679eacccd08d56f24c68704cfdee1fb5ae5
    # Parent  65079a8b30cbc46d3651d57b19f2572f31441ff5
    trac 8943: add doctest for a fix to the series expansions in pynac.
    
    diff --git a/sage/symbolic/expression.pyx b/sage/symbolic/expression.pyx
    a b  
    27582758            1*x + (-1/3)*x^3 + 1/5*x^5 + (-1/7)*x^7 + 1/9*x^9 + Order(x^10)
    27592759            sage: float(16*f.subs(x==1/5) - 4*f.subs(x==1/239))
    27602760            3.1415926824043994
     2761
     2762        TESTS:
     2763
     2764        Check if #8943 is fixed::
     2765
     2766            sage: ((1+arctan(x))**(1/x)).series(x==0, 3)
     2767            (e) + (-1/2*e)*x + (1/8*e)*x^2 + Order(x^3)
    27612768        """
    27622769        cdef Expression symbol0 = self.coerce_in(symbol)
    27632770        cdef GEx x