ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 31 Dec 2020 11:46:33 +0100Keeping the word in a list of lettershttps://ask.sagemath.org/question/55026/keeping-the-word-in-a-list-of-letters/Sorry to ask a question whose answer is probably evident but i can't find the answer.
Running
Word(["A","B","C","D"])
returns `word : ABCD` when I want only `ABCD`.CyrilleThu, 31 Dec 2020 11:46:33 +0100https://ask.sagemath.org/question/55026/periodicity of a wordhttps://ask.sagemath.org/question/45104/periodicity-of-a-word/I have the following code to create words.
sage: M.<x,y,z> = FreeMonoid(3)
sage: Word(x^3*y*x*z^2*x)
word: xxxyxzzx
I want find the periodicity of a given word.
For example ababab has periodicity 3 and abcdabcde has periodicity 1.
Kindly help me with this.
Thank you.GA316Sat, 19 Jan 2019 16:39:09 +0100https://ask.sagemath.org/question/45104/Why is the Subwords class separated from FiniteWord?https://ask.sagemath.org/question/42901/why-is-the-subwords-class-separated-from-finiteword/Subwords could be a method of FiniteWord as factors is already one.
Is there a reason why this is not the case?evandommeWed, 11 Jul 2018 04:40:01 +0200https://ask.sagemath.org/question/42901/How to define WordMorphism on an infinite alphabet ?https://ask.sagemath.org/question/35622/how-to-define-wordmorphism-on-an-infinite-alphabet/Let imagine I want to do a substitution on the set of all words written with natural numbers.
Example 1: replace every number with its square.
Example 2: make precise rules for substitution of letter in some finite subset of the alphabet and decide that all other letters will be deleted (replaced with empty).
It's not very clear for me from the doc whether this is actually allowed with the command `WordMorphism`, but if it is, I would like to understand how to do it. lbThu, 17 Nov 2016 03:24:55 +0100https://ask.sagemath.org/question/35622/The perimeter of a rectangle is 600 yards. What are the dimensions of the rectangle if the length is 10 yards more than the width?https://ask.sagemath.org/question/35036/the-perimeter-of-a-rectangle-is-600-yards-what-are-the-dimensions-of-the-rectangle-if-the-length-is-10-yards-more-than-the-width/The perimeter of a rectangle is 600 yards. What are the dimensions of the rectangle if the length is 10 yards more than the width? mgraceb16Mon, 03 Oct 2016 07:58:44 +0200https://ask.sagemath.org/question/35036/