Skip to content

Commit 6613b17

Browse files
author
Matthias Koeppe
committed
sage.combinat.words: Update # needs
1 parent 2e33391 commit 6613b17

File tree

3 files changed

+23
-19
lines changed

3 files changed

+23
-19
lines changed

src/sage/combinat/words/morphism.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3331,24 +3331,25 @@ def abelian_rotation_subspace(self):
33313331
33323332
EXAMPLES::
33333333
3334-
sage: WordMorphism('0->1,1->0').abelian_rotation_subspace() # needs sage.modules
3334+
sage: # needs sage.modules
3335+
sage: WordMorphism('0->1,1->0').abelian_rotation_subspace()
33353336
Vector space of degree 2 and dimension 2 over Rational Field
33363337
Basis matrix:
33373338
[1 0]
33383339
[0 1]
3339-
sage: WordMorphism('0->01,1->10').abelian_rotation_subspace() # needs sage.modules
3340+
sage: WordMorphism('0->01,1->10').abelian_rotation_subspace()
33403341
Vector space of degree 2 and dimension 0 over Rational Field
33413342
Basis matrix:
33423343
[]
3343-
sage: WordMorphism('0->01,1->1').abelian_rotation_subspace() # needs sage.modules
3344+
sage: WordMorphism('0->01,1->1').abelian_rotation_subspace()
33443345
Vector space of degree 2 and dimension 1 over Rational Field
33453346
Basis matrix:
33463347
[0 1]
3347-
sage: WordMorphism('1->122,2->211').abelian_rotation_subspace() # needs sage.modules
3348+
sage: WordMorphism('1->122,2->211').abelian_rotation_subspace()
33483349
Vector space of degree 2 and dimension 1 over Rational Field
33493350
Basis matrix:
33503351
[ 1 -1]
3351-
sage: WordMorphism('0->1,1->102,2->3,3->4,4->2').abelian_rotation_subspace() # needs sage.modules
3352+
sage: WordMorphism('0->1,1->102,2->3,3->4,4->2').abelian_rotation_subspace()
33523353
Vector space of degree 5 and dimension 3 over Rational Field
33533354
Basis matrix:
33543355
[0 0 1 0 0]

src/sage/combinat/words/paths.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1646,13 +1646,14 @@ def animate(self):
16461646
16471647
The first 4 Fibonacci tiles in an animation::
16481648
1649-
sage: a = words.fibonacci_tile(0).animate() # needs sage.plot
1650-
sage: b = words.fibonacci_tile(1).animate() # needs sage.plot
1651-
sage: c = words.fibonacci_tile(2).animate() # needs sage.plot
1652-
sage: d = words.fibonacci_tile(3).animate() # needs sage.plot
1653-
sage: print(a*b*c*d) # needs sage.plot
1649+
sage: # needs sage.plot
1650+
sage: a = words.fibonacci_tile(0).animate()
1651+
sage: b = words.fibonacci_tile(1).animate()
1652+
sage: c = words.fibonacci_tile(2).animate()
1653+
sage: d = words.fibonacci_tile(3).animate()
1654+
sage: print(a*b*c*d)
16541655
Animation with 296 frames
1655-
sage: show(a*b*c*d) # long time, optional - imagemagick, needs sage.plot
1656+
sage: show(a*b*c*d) # long time, optional - imagemagick
16561657
16571658
.. note::
16581659

src/sage/combinat/words/word_generators.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -855,10 +855,11 @@ def CharacteristicSturmianWord(self, slope, alphabet=(0, 1), bits=None):
855855
856856
::
857857
858-
sage: a = words.LowerMechanicalWord(1/pi)[1:] # needs sage.symbolic
859-
sage: b = words.UpperMechanicalWord(1/pi)[1:] # needs sage.symbolic
860-
sage: c = words.CharacteristicSturmianWord(1/pi) # needs sage.symbolic
861-
sage: n = 500; a[:n] == b[:n] == c[:n] # needs sage.symbolic
858+
sage: # needs sage.symbolic
859+
sage: a = words.LowerMechanicalWord(1/pi)[1:]
860+
sage: b = words.UpperMechanicalWord(1/pi)[1:]
861+
sage: c = words.CharacteristicSturmianWord(1/pi)
862+
sage: n = 500; a[:n] == b[:n] == c[:n]
862863
True
863864
864865
::
@@ -937,11 +938,12 @@ def _CharacteristicSturmianWord_LetterIterator(self, cf, alphabet=(0,1)):
937938
938939
::
939940
940-
sage: alpha = (sqrt(3)-1)/2 # needs sage.symbolic
941-
sage: continued_fraction(alpha)[:10] # needs sage.symbolic
941+
sage: # needs sage.symbolic
942+
sage: alpha = (sqrt(3)-1)/2
943+
sage: continued_fraction(alpha)[:10]
942944
[0; 2, 1, 2, 1, 2, 1, 2, 1, 2]
943-
sage: cf = iter(_) # needs sage.symbolic
944-
sage: Word(words._CharacteristicSturmianWord_LetterIterator(cf)) # needs sage.symbolic
945+
sage: cf = iter(_)
946+
sage: Word(words._CharacteristicSturmianWord_LetterIterator(cf))
945947
word: 0100100101001001001010010010010100100101...
946948
"""
947949
try:

0 commit comments

Comments
 (0)