#12226: rational a finite word
-----------------------------+----------------------------------------------
Reporter: sstarosta | Owner: sage-combinat
Type: enhancement | Status: new
Priority: minor | Milestone: sage-4.8
Component: combinatorics | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
-----------------------------+----------------------------------------------
Upgrade exponent of a FiniteWord_class to calculate rational exponents.
Now:
{{{
sage: Word('1231').exponent()
1
}}}
Expected:
{{{
sage: Word('1231').exponent()
4/3
}}}
The goal
{{{
sage: Word('1231').exponent()
4/3
sage: Word('1231').exponent(integer=True)
1
}}}
Also, upgrade (deprecate, review, and/or change name) the method
primitive() to be in accordance with the terminology used in literature
(the word is usually called the period instead of the primitive)
{{{
sage: Word('1231').exponent()
4/3
sage: Word('1231').period()
word: 123
}}}
Upgrade influenced methods (primitive_length(), ...).
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12226>
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.