find_root with bfloats



On 9/28/10 11:04 AM, Robert Dodier wrote:
> On 9/27/10, Raymond Toy <toy.raymond at gmail.com> wrote:
> 
>> One issue is find_root_abs and find_root_rel.  I added bf_find_root_abs
>> and bf_find_root_rel.  But I left find_root_error unchanged.  Maybe
>> there should be a bf_find_root_error too?
> 
> Well, this business with using global variables to represent function
> parameters and return values is a mess. I don't really want to
> extend it any further. You can just use the find_root_whatever
> variables in bf_find_root. You can just assign bigfloat values to
> them instead of floats, right?

FWIW, I've checked in some changes.  The global bf_find_root_abs and
bf_find_root_rel are gone, but find_root_abs and find_root_rel still
exist.  Find_root now takes two optional keyword arguments, abserr and
relerr, to allow the user to specify the absolute and relative error.
These default to find_root_abs and find_root_rel.  Thus, there is now no
longer a need to touch find_root_abs and find_root_rel in anyway.

I did not do anything about find_root_err, though.

Documentation also updated to reflect these changes.

Hope these are suitable.

Ray