[SciPy-user] optimize.fsolve

Christian Kristukat ckkart at hoc.net
Thu Aug 18 11:18:46 CDT 2005

Howey, David A wrote:
> thanks for all your help Ryan and Brett.
> I have now got fsolve working in my code. You won't believe how overjoyed I am!!! (the simple things in life, eh..)
> one more general python question relating to parameter passing. With routines like fsolve, the additional arguments for the user-defined function are passed in in a tuple, eg
> args = (80000, 80000, 12.7)
> is it possible to do a hack to call the function directly, eg something like
> answer = myfunc(x, args)

def myfunc(x, *args):
     arg1,arg2 = args


Regards, Christian

More information about the SciPy-user mailing list