#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: |
-----------------------------------+----------------------------------------
Comment(by niles):
Replying to [comment:4 niles]: Code in the previous description made no
sense; my apologies. Here's what we have after applying the patch:
{{{
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, True, True, True, True, True]
sage: f = t + t^2 + O(t^10)
sage: f == f.truncate()
True
sage: f.padded_list()
[0, 1, 1, 0, 0, 0, 0, 0, 0, 0]
sage: f.padded_list(infinity)
[0, 1, 1]
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9457#comment:5>
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.