#10517: Add functions about periods in the Words library
-----------------------------+----------------------------------------------
Reporter: abmasse | Owner: sage-combinat
Type: enhancement | Status: new
Priority: minor | Milestone: sage-4.6.2
Component: combinatorics | Keywords: periods, words
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------+----------------------------------------------
There are already some functions in Sage dealing with the periods of a
word, namely
1. `is_primitive(self)`, tells whether self is an integral power of
another smaller word;
1. `primitive(self)`, returns the smallest word `u` such that `self =
u^n` and `n` is an integer;
1. `primitive_length(self)`, returns the length of the primitive of
self.
However, the two following functions are useful and should be added:
1. `has_period(self, p)`, which returns True if `p` is a period of
`self`;
1. `periods(self)`, returns all the periods of `self`.
I should upload a patch soon with those two functions.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10517>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.