Skip to content

Commit 250a98c

Browse files
committed
add another test
1 parent 6aab949 commit 250a98c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/sage/combinat/k_regular_sequence.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,6 +1227,17 @@ def guess(self, f, n_max=100, max_exponent=10, sequence=None):
12271227
sage: two_again = Seq2.guess(lambda n: 2, sequence=two)
12281228
sage: two_again.linear_representation()
12291229
((1), Finite family {0: [1], 1: [1]}, (2))
1230+
1231+
::
1232+
1233+
sage: def s(k):
1234+
....: return k
1235+
sage: S1 = Seq2.guess(s)
1236+
sage: S2 = Seq2.guess(s, sequence=S1)
1237+
sage: S1
1238+
2-regular sequence 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ...
1239+
sage: S2
1240+
2-regular sequence 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ...
12301241
"""
12311242
import logging
12321243
logger = logging.getLogger(__name__)

0 commit comments

Comments
 (0)