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

Commit

Permalink
Some last doc fixes and tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
tscrim committed Aug 12, 2022
1 parent 9fb155f commit 7f9dbb1
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 19 deletions.
24 changes: 13 additions & 11 deletions src/sage/data_structures/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
This module provides lazy implementations of basic operators on
streams. The classes implemented in this module can be used to build
up more complex streams for different kinds of series (Laurent,
Dirichlet, etc).
Dirichlet, etc.).
EXAMPLES:
Expand Down Expand Up @@ -85,6 +85,8 @@

# ****************************************************************************
# Copyright (C) 2019 Kwankyu Lee <[email protected]>
# 2022 Martin Rubey <martin.rubey at tuwien.ac.at>
# 2022 Travis Scrimshaw <tcscrims at gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -1025,7 +1027,7 @@ def __eq__(self, other):
INPUT:
- ``other`` -- a stream of coefficients
- ``other`` -- a :class:`Stream` of coefficients
EXAMPLES::
Expand Down Expand Up @@ -1088,7 +1090,7 @@ def __eq__(self, other):
INPUT:
- ``other`` -- a stream of coefficients
- ``other`` -- a :class:`Stream` of coefficients
EXAMPLES::
Expand Down Expand Up @@ -1213,8 +1215,8 @@ class Stream_add(Stream_binaryCommutative):
INPUT:
- ``left`` -- stream of coefficients on the left side of the operator
- ``right`` -- stream of coefficients on the right side of the operator
- ``left`` -- :class:`Stream` of coefficients on the left side of the operator
- ``right`` -- :class:`Stream` of coefficients on the right side of the operator
EXAMPLES::
Expand Down Expand Up @@ -1273,8 +1275,8 @@ class Stream_sub(Stream_binary):
INPUT:
- ``left`` -- stream of coefficients on the left side of the operator
- ``right`` -- stream of coefficients on the right side of the operator
- ``left`` -- :class:`Stream` of coefficients on the left side of the operator
- ``right`` -- :class:`Stream` of coefficients on the right side of the operator
EXAMPLES::
Expand Down Expand Up @@ -1338,8 +1340,8 @@ class Stream_cauchy_mul(Stream_binary):
INPUT:
- ``left`` -- stream of coefficients on the left side of the operator
- ``right`` -- stream of coefficients on the right side of the operator
- ``left`` -- :class:`Stream` of coefficients on the left side of the operator
- ``right`` -- :class:`Stream` of coefficients on the right side of the operator
EXAMPLES::
Expand Down Expand Up @@ -1424,8 +1426,8 @@ class Stream_dirichlet_convolve(Stream_binary):
INPUT:
- ``left`` -- stream of coefficients on the left side of the operator
- ``right`` -- stream of coefficients on the right side of the operator
- ``left`` -- :class:`Stream` of coefficients on the left side of the operator
- ``right`` -- :class:`Stream` of coefficients on the right side of the operator
The coefficient of `n^{-s}` in the convolution of `l` and `r`
equals `\sum_{k | n} l_k r_{n/k}`.
Expand Down
8 changes: 5 additions & 3 deletions src/sage/rings/lazy_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@

# ****************************************************************************
# Copyright (C) 2019 Kwankyu Lee <[email protected]>
# 2022 Martin Rubey <martin.rubey at tuwien.ac.at>
# 2022 Travis Scrimshaw <tcscrims at gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -1474,7 +1476,7 @@ def tan(self):
r"""
Return the tangent of ``self``.
EXAMPLES:
EXAMPLES::
sage: L.<z> = LazyLaurentSeriesRing(QQ)
sage: tan(z)
Expand Down Expand Up @@ -3281,7 +3283,7 @@ def __call__(self, *g, check=True):
INPUT:
- ``g`` -- other series, all of the same parent.
- ``g`` -- other series, all can be coerced into the same parent
EXAMPLES::
Expand Down Expand Up @@ -3638,7 +3640,7 @@ def __call__(self, *args, check=True):
INPUT:
- ``args`` -- other (lazy) symmetric functions.
- ``args`` -- other (lazy) symmetric functions
EXAMPLES::
Expand Down
12 changes: 7 additions & 5 deletions src/sage/rings/lazy_series_ring.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

# ****************************************************************************
# Copyright (C) 2019 Kwankyu Lee <[email protected]>
# 2022 Martin Rubey <martin.rubey at tuwien.ac.at>
# 2022 Travis Scrimshaw <tcscrims at gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -442,7 +444,7 @@ def _element_constructor_(self, x=None, valuation=None, degree=None, constant=No
raise ValueError(f"unable to convert {x} into {self}")

def undefined(self, valuation=None):
"""
r"""
Return an uninitialized series.
INPUT:
Expand All @@ -451,7 +453,7 @@ def undefined(self, valuation=None):
Power series can be defined recursively (see
:meth:`sage.rings.lazy_series.LazyModuleElement.define()` for
more examples)::
more examples).
EXAMPLES::
Expand All @@ -467,13 +469,13 @@ def undefined(self, valuation=None):

class options(GlobalOptions):
r"""
Set and display the options for Lazy Laurent series.
Set and display the options for lazy series.
If no parameters are set, then the function returns a copy of
the options dictionary.
The ``options`` to Lazy Laurent series can be accessed as using
:class:`LazyLaurentSeriesRing.options` of :class:`LazyLaurentSeriesRing`.
The ``options`` to lazy series can be accessed as using
:class:`LazySeriesRing.options`.
@OPTIONS@
Expand Down

0 comments on commit 7f9dbb1

Please sign in to comment.