[SciPy-User] Vectorized newton function

Gökhan Sever gokhansever@gmail....
Thu Apr 15 09:35:37 CDT 2010


On Wed, Apr 14, 2010 at 9:26 PM, Robert Kern <robert.kern@gmail.com> wrote:

> On Wed, Apr 14, 2010 at 19:33, Charles R Harris
> <charlesr.harris@gmail.com> wrote:
> >
> > On Wed, Apr 14, 2010 at 6:15 PM, Gökhan Sever <gokhansever@gmail.com>
> wrote:
> >>
> >> Thanks Anne for suggesting "fsolve" and rest of the useful information.
> >> Below is how my function is read:
> >>
> >> def myfunc(myarray):
> >>        term1 = compute1_array1
> >>        term2 = compute3_array2
> >>        term3 = compute3_array3
> >>        return term1+term2+term3
> >>
> >> result_arr = fsolve(myfunc, myarray)
> >>
> >> IDL handles univariate and multivariate cases using one fun newton
> >> function. I get almost equivalent results using fsolve to IDL's newton.
> >>
> >
> > The fsolve function is essentially multidimensional newton, IIRC.
>
> Yes, but it's an N**2 waste when the equations aren't coupled.
>

Robert,

Could you give an example what you mean here?

-- 
Gökhan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20100415/0fb34f48/attachment.html 


More information about the SciPy-User mailing list