Fri Jul 27 07:26:08 CDT 2012
Regrettably, this just repeats what is in the SciPy user guide, including the assertion that "it should be easy to understand the algorithm just by reading our code." But your reference contains no lines of code.
Besides, I'm of the opinion that documentation that refers users to the code is unsatisfactory.
On Jul 26, 2012, at 8:00 PM, John Hassler <firstname.lastname@example.org> wrote:
> On 7/26/2012 10:33 PM, The Helmbolds wrote:
>> The user guide says the algorithm for brentq should be obvious from inspecting the code.
>> Unfortunately, I can't find the code.
>> The entire code in the definition of the brentq function (located in the zeros section of scipy.optimize) reads:
>> if type(args) != type(()) :
>> args = (args,)
>> r = _zeros._brentq(f,a,b,xtol,maxiter,args,full_output,disp)
>> So it just calls _zeros._brentq.
>> The module in which the brentq function is defined imports _zeros.
>> I searched but the only _zeros file I could find in scipy.optimize is a _zeros.pyd file,
>> and that's a DLL file, not a Python code object.
>> So I'm at a loss as to where the brentq code is located.
> Maybe this?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-User