Skip to content

Commit 3955f0e

Browse files
committed
Merge remote-tracking branch 'origin/u/dkrenn/k-regular-warning' into u/dkrenn/k-regular-warning
* origin/u/dkrenn/k-regular-warning: Apply suggestions from code review
2 parents 48efc43 + 3e26cc0 commit 3955f0e

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
@@ -407,7 +407,8 @@ def _error_if_degenerated_(self):
407407
def regenerated(self):
408408
r"""
409409
Return a `k`-regular sequence that satisfies
410-
`\mu[0] \mathit{right} = \mathit{right}`.
410+
`\mu[0] \mathit{right} = \mathit{right}` with the same values as
411+
this sequence.
411412
412413
INPUT:
413414
@@ -424,7 +425,7 @@ def regenerated(self):
424425
425426
sage: Seq2 = kRegularSequenceSpace(2, ZZ)
426427
427-
The following linear representation of `S` is chosen bad (is
428+
The following linear representation of `S` is chosen badly (is
428429
degenerated, see :meth:`is_degenerated`), as `\mu(0)` applied on
429430
`\mathit{right}` does not equal `\mathit{right}`::
430431
@@ -550,7 +551,7 @@ def transposed(self, allow_degenerated_sequence=False):
550551

551552
def _minimized_right_(self):
552553
r"""
553-
Return a recognizable series equivalent to this series, but
554+
Return a regular sequence equivalent to this series, but
554555
with a right minimized linear representation.
555556
556557
OUTPUT:
@@ -744,7 +745,7 @@ def subsequence(self, a, b):
744745
...
745746
ValueError: a=-1 is not nonnegative.
746747
747-
The following linear representation of `S` is chosen bad (is
748+
The following linear representation of `S` is chosen badly (is
748749
degenerated, see :meth:`is_degenerated`), as `\mu(0)` applied on
749750
`\mathit{right}` does not equal `\mathit{right}`::
750751
@@ -1070,7 +1071,7 @@ def partial_sums(self, include_n=False):
10701071
sage: C.partial_sums(include_n=True)
10711072
2-regular sequence 0, 1, 3, 6, 10, 15, 21, 28, 36, 45, ...
10721073
1073-
The following linear representation of `S` is chosen bad (is
1074+
The following linear representation of `S` is chosen badly (is
10741075
degenerated, see :meth:`is_degenerated`), as `\mu(0)` applied on
10751076
`\mathit{right}` does not equal `\mathit{right}`::
10761077
@@ -1515,7 +1516,7 @@ def guess(self, f, n_verify=100, max_exponent=10, sequence=None):
15151516
(0, 1))
15161517
sage: logging.getLogger().setLevel(logging.WARN)
15171518
1518-
The following linear representation of `S` is chosen bad (is
1519+
The following linear representation of `S` is chosen badly (is
15191520
degenerated, see :meth:`is_degenerated`), as `\mu(0)` applied on
15201521
`\mathit{right}` does not equal `\mathit{right}`::
15211522

0 commit comments

Comments
 (0)