#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):
Replaced padded_list() with padded_list(prec) because of
{{{
sage: A.<t> = PowerSeriesRing(ZZ)
sage: f = t + t^2 + O(t^10)
sage: f == f.truncate()
False
sage: f.truncate().padded_list()
[0, 1, 1]
}}}
This brought up a problem with padded_list(infinity), which is also now
patched
{{{
sage: A.<t> = PowerSeriesRing(ZZ)
sage: f = t + t^2 + O(t**10)
sage: f.padded_list()
[0, 1, 1, 0, 0, 0, 0, 0, 0, 0]
sage: f.padded_list(infinity)
Traceback (most recent call last):
...
TypeError: unsupported operand parent(s) for '*': '<type 'list'>' and 'The
Infinity Ring'
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9457#comment:3>
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.