[SciPy-user] Possibly bug in optimize/zeros.py

Pearu Peterson pearu at scipy.org
Thu Jan 13 06:38:29 EST 2005



On Wed, 12 Jan 2005, Nils Wagner wrote:

> I am going to solve secular equations with scipy's optimize package.
> This is the result of my short test program solomonoff.py
>
> numerix Numeric 23.7
> Internal Error occured.
> Error when calling Python function.  See traceback.
> Traceback (most recent call last):
> File "solomonoff.py", line 46, in ?
>   print  optimize.zeros.brenth(f,d[i],d[i+1])
> File "/usr/lib/python2.3/site-packages/scipy/optimize/zeros.py", line 137, 
> in brenth
>   return _zeros._brenth(f,a,b,xtol,maxiter,args,full_output,disp)
> TypeError: bad argument type for built-in operation
>>>> 
>
> Is it a bug or a wrong function call ?

It a wrong function call, note that d[i] in

   optimize.zeros.brenth(f,d[i],d[i+1])

is an array but optimize.zeros functions work only on univariate problems.

Pearu




More information about the SciPy-User mailing list