bgoli at sun.ac.za
Thu Aug 18 10:17:31 CDT 2005
On Thursday 18 August 2005 16:26, Howey, David A wrote:
> is it possible to do a hack to call the function directly, eg something
> like answer = myfunc(x, args)
I think you can do something like this.
def DE_explicit_ss(s, x0, x2):
scipy.optimize.fsolve(DE_explicit_ss, init_val, args=(x0,x2))
> .. this doesn't work, but is there some kind of 'unpack' or something which
> will make the function think it's just getting positional arguments instead
> of a tuple?
> There must be a way, otherwise how would fsolve (etc etc) work?
Brett G. Olivier
Triple-J Group for Molecular Cell Physiology
bgoli at sun dot ac dot za http://glue.jjj.sun.ac.za/~bgoli
Tel +27-21-8082704 Fax +27-21-8085863 Mobile +27-82-7329306
The only "intuitive" interface is the nipple. After that, it's all learned.
(Bruce Ediger, bediger at teal.csn.org, in comp.os.linux.misc, on X interfaces.)
More information about the SciPy-user