#8139: Can not compute (very) high power of WordMorphism
-----------------------------+----------------------------------------------
   Reporter:  vdelecroix     |          Owner:  sage-combinat
       Type:  defect         |         Status:  new          
   Priority:  major          |      Milestone:  sage-4.8     
  Component:  combinatorics  |       Keywords:               
Work_issues:                 |       Upstream:  N/A          
   Reviewer:                 |         Author:               
     Merged:                 |   Dependencies:               
-----------------------------+----------------------------------------------
Changes (by mjo):

 * cc: mjo (added)


Comment:

 The example morphism,

 {{{
 sage: m = WordMorphism('a->ab,b->ba')
 }}}

 doubles the length of its input on every application. So,

 {{{
 sage: m^31
 }}}

 will double the length of 'a' 31 times. That's just enough so that the
 length of the result overflows a signed integer, and thus it complains,
 "Stop argument for islice() must be a non-negative integer..."

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8139#comment:2>
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.

Reply via email to