On 2014-06-21, David Ingerman <
davidd...@gmail.com> wrote:
> Thank you, that's helpful. Is there a way to get all roots of a Python
> function on an interval?
I never heard of robust procedures for such a task, and doubt they are
even possible (think about roots of sin(1/x) on [0,1]).
Certainly you can partition the interval into pieces
and try finding root in each subinterval where the function has
different signs on its ends.
scipy has a variety of root-finding methods implemented. You
can do
sage: import scipy.optimize
and then read on
sage: scipy.optimize.brentq?
(the method called by Sage's find_root)
>
> On Friday, June 20, 2014 2:10:38 AM UTC-7, Dima Pasechnik wrote:
>>