[Scipy-tickets] [SciPy] #1214: scipy.optimize.newton fails for a function with integer coefficients
SciPy Trac
scipy-tickets@scipy....
Tue Jun 29 10:27:39 CDT 2010
#1214: scipy.optimize.newton fails for a function with integer coefficients
------------------------------+---------------------------------------------
Reporter: warren.weckesser | Owner: somebody
Type: defect | Status: needs_review
Priority: normal | Milestone: 0.8.0
Component: scipy.optimize | Version: 0.7.0
Keywords: newton |
------------------------------+---------------------------------------------
Comment(by warren.weckesser):
float(x0) was my first choice, but then I realized that newton actually
works with complex numbers (at least when fprime is given; I didn't
experiment with the secant method), so it seemed a shame to break that by
using float. By multiplying by 1.0, an int becomes a float, but a complex
number stays complex.
I'll add a comment about that before I check in the change.
--
Ticket URL: <http://projects.scipy.org/scipy/ticket/1214#comment:3>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.
More information about the Scipy-tickets
mailing list