Ticket #13433: trac_13433-review-mh.patch

File trac_13433-review-mh.patch, 1.2 KB (added by mhansen, 8 years ago)
  • sage/combinat/species/generating_series.py

    # HG changeset patch
    # User Mike Hansen <mhansen@gmail.com>
    # Date 1374443237 -3600
    # Node ID eafca42e2ad0ad78cacea3af793b294094ad1cd3
    # Parent  e8d03c4cbd96b861553c41026cffc29d7bd1c55e
    #13443: Review patch
    
    diff --git a/sage/combinat/species/generating_series.py b/sage/combinat/species/generating_series.py
    a b  
    535535       
    536536        return self.parent().sum_generator(multinv_builder(i) for i in _integers_from(0))
    537537
    538     def _div_(self, y):
     538    def __div__(self, y):
    539539        """
    540540        TESTS::
    541541
  • sage/combinat/species/series.py

    diff --git a/sage/combinat/species/series.py b/sage/combinat/species/series.py
    a b  
    419419            n += 1
    420420
    421421    def sum_generator(self, g):
    422         """
     422        r"""
     423        Given a stream of lazy power series $F^i$ for
     424        $i = 0 \ldots \infty$, returns the lazy power series $f$ whose coefficient
     425        of $x^n$ is given by
     426
     427        .. math::
     428
     429           f_n = \sum_{j=0}^{n} F^j_n .
     430       
    423431        EXAMPLES::
    424432
    425433            sage: L = LazyPowerSeriesRing(QQ)