Indeed, primitive_length only consider periods that are
integer divisors of the total length. If you want other
periods you can use the (very slow)
sage: Word(S).periods()
[3, 6, 9]
Vincent
Le 17/12/2018 à 09:52, pc.chandr...@gmail.com a écrit :
Thank you. However if S=[1,2,3,1,2,3,1,2,3,1,2]
Thank you. However if S=[1,2,3,1,2,3,1,2,3,1,2], it is showing 11 although
period is 3.
On Monday, December 10, 2018 at 1:26:50 PM UTC+5:30, vdelecroix wrote:
>
> You can use
>
> sage: w = Word(S)
> sage: w.primitive_length()
> [3]
> sage: w.primitive()
> word: 123
>
> Le 09/12/2018 à 11
You can use
sage: w = Word(S)
sage: w.primitive_length()
[3]
sage: w.primitive()
word: 123
Le 09/12/2018 à 11:57, chandra chowdhury a écrit :
I have a sequence which I stored in an array.
I want to find the period of the sequence.
But the following code gives error.
S=[1,2,3,1,2,3]
S=Sequence(
On Sun, Dec 9, 2018 at 10:57 AM chandra chowdhury
wrote:
>
> I have a sequence which I stored in an array.
> I want to find the period of the sequence.
> But the following code gives error.
>
> S=[1,2,3,1,2,3]
> S=Sequence(S)
> print S.period()
What does tell you that Sequence has such a method i
I have a sequence which I stored in an array.
I want to find the period of the sequence.
But the following code gives error.
S=[1,2,3,1,2,3]
S=Sequence(S)
print S.period()
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this
Thank you very much.
On 20 January 2012 20:57, David Joyner wrote:
> On Fri, Jan 20, 2012 at 9:56 AM, Santanu Sarkar
> wrote:
>> I have a sequence of 0 and 1. I know that period is small. Is there
>> any function in Sage by which
>> I can find the period? Or, can we find the period efficiently?
On Fri, Jan 20, 2012 at 9:56 AM, Santanu Sarkar
wrote:
> I have a sequence of 0 and 1. I know that period is small. Is there
> any function in Sage by which
> I can find the period? Or, can we find the period efficiently?
> For example {0,1,0,1,0,1} has period of length 2.
Try
http://www.sagemath
I have a sequence of 0 and 1. I know that period is small. Is there
any function in Sage by which
I can find the period? Or, can we find the period efficiently?
For example {0,1,0,1,0,1} has period of length 2.
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe f