#18189: real_roots.root_bounds: Inconsistent return types
-------------------------------------+-------------------------------------
Reporter: mmezzarobba | Owner:
Type: defect | Status: needs_review
Priority: minor | Milestone: sage-6.6
Component: algebra | Resolution:
Keywords: | Merged in:
Authors: Marc Mezzarobba | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/mmezzarobba/18189-root_bounds | d646e31eab13f470c3103db1d7072ca7c2781918
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by {'newvalue': u'Marc Mezzarobba', 'oldvalue': ''}):
* status: new => needs_review
* author: => Marc Mezzarobba
* branch: => u/mmezzarobba/18189-root_bounds
* commit: => d646e31eab13f470c3103db1d7072ca7c2781918
Old description:
> {{{
> sage: import sage.rings.polynomial.real_roots as rr
> sage: rr.cl_maximum_root_first_lambda([RIF(-1), RIF(0), RIF(1)]).parent()
> Real Field with 53 bits of precision and rounding RNDU
> sage: type(rr.cl_maximum_root_first_lambda(map(RIF, [0, 0, 0, 14, 1])))
> <type 'int'>
> }}}
New description:
{{{
sage: import sage.rings.polynomial.real_roots as rr
sage: x = polygen(QQ)
sage: rr.root_bounds(x)
(0, 0)
sage: rr.root_bounds(x+1)
(-1.00000000000000, -1.00000000000000)
sage: rr.cl_maximum_root_first_lambda([RIF(-1), RIF(0), RIF(1)]).parent()
Real Field with 53 bits of precision and rounding RNDU
sage: type(rr.cl_maximum_root_first_lambda(map(RIF, [0, 0, 0, 14, 1])))
<type 'int'>
}}}
--
Comment:
New commits:
||[http://git.sagemath.org/sage.git/commit/?id=d646e31eab13f470c3103db1d7072ca7c2781918
d646e31]||{{{#18189 fix return type of real_roots.root_bounds...}}}||
--
Ticket URL: <http://trac.sagemath.org/ticket/18189#comment:1>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.