#9457: power series comparison should use padded_list
-----------------------------------+----------------------------------------
   Reporter:  niles                |       Owner:  malb        
       Type:  defect               |      Status:  needs_review
   Priority:  minor                |   Milestone:  sage-4.5    
  Component:  commutative algebra  |    Keywords:              
     Author:                       |    Upstream:  N/A         
   Reviewer:                       |      Merged:              
Work_issues:                       |  
-----------------------------------+----------------------------------------
Description changed by niles:

Old description:

> Comparison of power series uses list instead of padded_list; this means
> that power series equality can fail:
>
> {{{
> sage: A.<t> = PowerSeriesRing(ZZ)
> sage: g = t + t^3 + t^5 + O(t^6); g
> t + t^3 + O(t^6)
> sage: [g == g.add_bigoh(i) for i in range(7)]
> [True, True, False, False, True, False, True] # should be all true
> sage: g.add_bigoh(3).list()
> [1]
> sage: g.add_bigoh(3).padded_list()
> [1, 0, 0]
> }}}

New description:

 Comparison of power series uses list instead of padded_list; this means
 that power series equality can fail:

 {{{
 sage: A.<t> = PowerSeriesRing(ZZ)
 sage: g = t + t^3 + t^5 + O(t^6); g
 t + t^3 + t^5 + O(t^6)
 sage: [g == g.add_bigoh(i) for i in range(7)]
 [True, True, False, False, True, False, True] # should be all true
 sage: g.add_bigoh(3).list()
 [1]
 sage: g.add_bigoh(3).padded_list()
 [1, 0, 0]
 }}}

--

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