[SciPy-user] optimize.fsolve

Ryan Krauss ryanfedora at comcast.net
Thu Aug 18 08:28:44 CDT 2005


I guess I was wrong.

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



More information about the SciPy-user mailing list