Skip to content

Commit 3e26cc0

Browse files
dkrenncheuberg
andauthored
Apply suggestions from code review
Co-authored-by: cheuberg <[email protected]>
1 parent b52ecc5 commit 3e26cc0

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/sage/combinat/k_regular_sequence.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,8 @@ def _error_if_degenerated_(self):
401401
def regenerated(self):
402402
r"""
403403
Return a `k`-regular sequence that satisfies
404-
`\mu[0] \mathit{right} = \mathit{right}`.
404+
`\mu[0] \mathit{right} = \mathit{right}` with the same values as
405+
this sequence.
405406
406407
INPUT:
407408
@@ -418,7 +419,7 @@ def regenerated(self):
418419
419420
sage: Seq2 = kRegularSequenceSpace(2, ZZ)
420421
421-
The following linear representation of `S` is chosen bad (is
422+
The following linear representation of `S` is chosen badly (is
422423
degenerated, see :meth:`is_degenerated`), as `\mu(0)` applied on
423424
`\mathit{right}` does not equal `\mathit{right}`::
424425
@@ -537,7 +538,7 @@ def transposed(self, allow_degenerated_sequence=False):
537538

538539
def _minimized_right_(self):
539540
r"""
540-
Return a recognizable series equivalent to this series, but
541+
Return a regular sequence equivalent to this series, but
541542
with a right minimized linear representation.
542543
543544
OUTPUT:
@@ -731,7 +732,7 @@ def subsequence(self, a, b):
731732
...
732733
ValueError: a=-1 is not nonnegative.
733734
734-
The following linear representation of `S` is chosen bad (is
735+
The following linear representation of `S` is chosen badly (is
735736
degenerated, see :meth:`is_degenerated`), as `\mu(0)` applied on
736737
`\mathit{right}` does not equal `\mathit{right}`::
737738
@@ -1057,7 +1058,7 @@ def partial_sums(self, include_n=False):
10571058
sage: C.partial_sums(include_n=True)
10581059
2-regular sequence 0, 1, 3, 6, 10, 15, 21, 28, 36, 45, ...
10591060
1060-
The following linear representation of `S` is chosen bad (is
1061+
The following linear representation of `S` is chosen badly (is
10611062
degenerated, see :meth:`is_degenerated`), as `\mu(0)` applied on
10621063
`\mathit{right}` does not equal `\mathit{right}`::
10631064
@@ -1502,7 +1503,7 @@ def guess(self, f, n_verify=100, max_exponent=10, sequence=None):
15021503
(0, 1))
15031504
sage: logging.getLogger().setLevel(logging.WARN)
15041505
1505-
The following linear representation of `S` is chosen bad (is
1506+
The following linear representation of `S` is chosen badly (is
15061507
degenerated, see :meth:`is_degenerated`), as `\mu(0)` applied on
15071508
`\mathit{right}` does not equal `\mathit{right}`::
15081509

0 commit comments

Comments
 (0)