#9787: lagrange_polynomial(algorithm='divided_difference') fails over finite
fields
-------------------------------------+-------------------------------------
Reporter: mmezzarobba | Owner: AlexGhitza
Type: defect | Status: needs_review
Priority: minor | Milestone: sage-6.4
Component: algebra | Resolution:
Keywords: | Merged in:
Authors: Peter Bruin | Reviewers: Miguel Marco
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/pbruin/9787-lagrange_polynomial | 57f432cfe194c56c1b258a2d37046d67b15b82ab
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by mmarco):
Well, you could have that even now:
{{{
sage: R.<x>=QQ[]
sage: R.lagrange_polynomial(((1,1.75),(2,0.2),(3,1.5)))
1.42500000000000*x^2 - 5.82500000000000*x + 6.15000000000000
}}}
You can either catch that and raise an exception (which is probably the
mathematically strictly correct), or be more flexible and allow situations
like the previous (which, i think, can be useful in several cases).
In this case, i would vote for the second option, but i understand it is a
matter of opinion.
--
Ticket URL: <http://trac.sagemath.org/ticket/9787#comment:11>
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.