Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
More work on doctests for series_stream.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mwhansen committed Jan 14, 2014
1 parent 654a89d commit bd7527c
Show file tree
Hide file tree
Showing 3 changed files with 1,133 additions and 85 deletions.
26 changes: 25 additions & 1 deletion src/sage/combinat/species/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,14 @@ def sum(self, a):

def sum_generator(self, g):
"""
Returns a lazy power series whose $n^{th}$ coefficients is
the sum of $n^{th}$ coefficients for the first $n$ series in
``g``.
INPUT:
- ``g`` - an iterable of lazy power series
EXAMPLES::
sage: L = LazyPowerSeriesRing(QQ)
Expand All @@ -338,7 +346,23 @@ def sum_generator(self, g):

#Potentially infinite product
def product_generator(self, g):
"""
r"""
Returns a lazy power series which is the product of the
(potentially infinite) series in the iterable ``g``. In order
to do this, we place restrictions on the form of the series
$g_n$. In particular we require that
.. math::
g_n = 1 + \sum_{i=n}^{\infty} a_{n,i} x^i.
Then, the $n^{th}$ coefficient can be obtained from the first
$n$ series.
INPUT:
- ``g`` - an iterable of lazy power series
EXAMPLES::
sage: L = LazyPowerSeriesRing(QQ)
Expand Down
Loading

0 comments on commit bd7527c

Please sign in to comment.