[SciPy-user] optimize.fsolve

Howey, David A d.howey at imperial.ac.uk
Thu Aug 18 08:04:44 CDT 2005


Thanks for this... interesting. 

What I'm trying to do eventually use fsolve to solve for two unknowns (call them p and v) in two non-linear equations (call them F1, F2). In matlab, one would define a vector function say myfunc returning a vector F with F(1) (first element in the vector) evaluating to the first equation and F(2) to the second. The function would accept a vector input, say x, which is = [ p ;  v]. ie a vector of the two unknowns. 

Do you think scipy's fsolve can work on vectors (arrays) like this in the same way?

Dave
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 2505 bytes
Desc: not available
Url : http://www.scipy.net/pipermail/scipy-user/attachments/20050818/e202ffd9/attachment-0001.bin


More information about the SciPy-user mailing list