[SciPy-user] optimize.fsolve

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


page 18 of the scipy tutorial sheds more light on this. I don't think the output has to be scalar.
... gradually getting there!
Dave


-----Original Message-----
From: scipy-user-bounces at scipy.net on behalf of Ryan Krauss
Sent: Thu 18/08/2005 14:14
To: SciPy Users List
Subject: Re: [SciPy-user] optimize.fsolve
 
Yes, I think it is doing exactly what Matlab would do.  You can have a 
vector input, you just need to have a scalar output that you are trying 
to drive to zero.

Howey, David A wrote:
> 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
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user

_______________________________________________
SciPy-user mailing list
SciPy-user at scipy.net
http://www.scipy.net/mailman/listinfo/scipy-user

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


More information about the SciPy-user mailing list