Ticket #9878: trac_9878-zeta_infinity.patch

File trac_9878-zeta_infinity.patch, 1.1 KB (added by burcin, 9 years ago)
  • sage/functions/transcendental.py

    # HG changeset patch
    # User Burcin Erocal <burcin@erocal.org>
    # Date 1284020458 -7200
    # Node ID c00d0700e7ac40764acecd68ac00cc8543e370a9
    # Parent  076f0585ee952f6c8aaf845ee4a9bda7e6d6608f
    #9878: pynac now returns unsigned infinity for zeta(1). Change doctests accordingly.
    
    diff --git a/sage/functions/transcendental.py b/sage/functions/transcendental.py
    a b  
    139139            sage: a = loads(dumps(zeta(x)))
    140140            sage: a.operator() == zeta
    141141            True
     142
     143            sage: zeta(1)
     144            Infinity
     145            sage: zeta(x).subs(x=1)
     146            Infinity
    142147        """
    143148        GinacFunction.__init__(self, "zeta")
    144149
  • sage/symbolic/expression.pyx

    diff --git a/sage/symbolic/expression.pyx b/sage/symbolic/expression.pyx
    a b  
    52815281        TESTS::
    52825282           
    52835283            sage: t = SR(1).zeta(); t
    5284             zeta(1)
    5285             sage: t.n()
    5286             +infinity
     5284            Infinity
    52875285        """
    52885286        _sig_on
    52895287        cdef GEx x = g_zeta(self._gobj)