[SciPy-User] Find the convergent solutions of a multivariate equation efficiently

Camille Chambon camillechambon at yahoo.fr
Thu Mar 26 04:21:13 EDT 2015


You are right. My epsilon is 0.01, which is much bigger than the default 
accuracy in optimize.root.
But setting tol=0.01:

scipy.optimize.root(fun, x0, tol=0.01)

scipy.optimize.root is still 17 times slower than the while loop.

Camille

Le 25/03/2015 18:38, Pauli Virtanen a écrit :
> 25.03.2015, 12:23, Camille Chambon kirjoitti:
> [clip]
>> Both work fine. But using timeit(...), the solution with
>> scipy.optimize.root is twenty times slower than the one with the while
>> loop. Is it normal?
> The default accuracy in optimize.root is 10^{-8}. Maybe your epsilon was
> much bigger?
>
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user




More information about the SciPy-User mailing list