[SciPy-user] help needed using optimize.fsolve

Guillem Borrell Nogueras guillem at torroja.dmt.upm.es
Mon Jun 6 10:53:43 CDT 2005

I've seen that the scipy's fsolve function has the option to pass
optional arguments to the function one wants to solve.

fsolve(func, x0, args=(), fprime=None, full_output=0, col_deriv=0,
maxfev=0, band=None, epsfcn=0.0, factor=100, diag=None)
     args -- Any extra arguments to func are placed in this tuple.

I need to solve a set of non-linear equations changing some parameters. 
The way i use in matlab and fortran is to write a file with the
parameter and read it when the function is evaluated.  This is slow and

I've tried unsuccessfully to pass the arguments this way.  ¿Anyone can help?

Guillem Borrell Nogueras

website http://torroja.dmt.upm.es/~guillem/

guillemborrell at gmail.com
guillem at torroja.dmt.upm.es

tf. 655388683

More information about the SciPy-user mailing list