#11871: Fix cellular automata function
------------------------+---------------------------------------------------
   Reporter:  kcrisman  |          Owner:  itolkov, jason
       Type:  defect    |         Status:  new           
   Priority:  major     |      Milestone:  sage-4.7.2    
  Component:  interact  |       Keywords:                
Work_issues:            |       Upstream:  N/A           
   Reviewer:            |         Author:                
     Merged:            |   Dependencies:                
------------------------+---------------------------------------------------
 In #9623, lots of interacts were added to the library.  Unfortunately, one
 (based on [http://wiki.sagemath.org/interact/misc#Cellular_Automata this
 wiki page by Pablo Angulo and Eviatar Bach]) was "optimized" a bit too
 much.  We need to replace
 {{{
         for k in range(N-j, N+j+1):
 }}}
 by
 {{{
  for k in range(0,2*N):
 }}}
 as in the original.

 One can test this by making sure the outputs are the same as at
 [http://mathworld.wolfram.com/ElementaryCellularAutomaton.html the
 MathWorld site] for this.  Thanks to jhpalmieri for discovering this in
 unrelated testing at #9623.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11871>
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