[Python-modules-team] Bug#860063: fsolve docs should state that it cannot solve over- or under-determined problems

James Van Zandt jim.vanzandt at gmail.com
Tue Apr 11 01:07:16 UTC 2017


Package: python-scipy
Version: 0.18.1


I have a MATLAB program that uses fsolve() from the optimization toolbox.
I found that scipy offers a similar function.  I spent a fair amount of
time translating my program into Python, only to discover that the scipy
implementation (unlike the MATLAB one) requires that the number of
functions and the number of variables be equal.  The documentation for the
underlying minpack programs (hybrd and hybrj) makes this clear, but the
scipy documentation does not.  It should.  I suggest the attached patch.

(It might also be a good idea to add a mention of leastsq, which can handle
an over- or under-determined problem.)

        - Jim Van Zandt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20170410/a03113d5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: application/octet-stream
Size: 571 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20170410/a03113d5/attachment.obj>


More information about the Python-modules-team mailing list