#9538: internal side effect in roots?
------------------------+---------------------------------------------------
Reporter: zimmerma | Owner: burcin
Type: defect | Status: new
Priority: blocker | Milestone:
Component: calculus | Keywords: roots, side effect
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
Consider the following with Sage 4.4.4:
{{{
sage: var('a6,a5,a4,x')
(a6, a5, a4, x)
sage: e=15*a6*x^2 + 5*a5*x + a4
sage: e.roots(x)
[(-1/30*(sqrt(-12*a4*a6 + 5*a5^2)*sqrt(5) + 5*a5)/a6, 1),
(1/30*(sqrt(-12*a4*a6 + 5*a5^2)*sqrt(5) - 5*a5)/a6, 1)]
}}}
This is fine. However:
{{{
sage: var('f6,f5,f4,x')
(f6, f5, f4, x)
sage: e=15*f6*x^2 + 5*f5*x + f4
sage: e.roots(x)
[(1/30*(-I*sqrt(35) - 5)/binomial(n, k), 1), (1/30*(I*sqrt(35) -
5)/binomial(n, k), 1)]
}}}
WTF???
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9538>
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.