cxroots
cxroots copied to clipboard
Improve `iterative_methods` structure
- There is a certain amount of repetition in the stopping criteria for
newton,secantandmuller, these could probably be centralised to reduce repetition, perhaps in somestop_iterationfunction. - Would be nice to use some more battle-tested implementaions for these standard methods, rather than my own.
- I think I originally passed on
scipy.optimize.newtonbefore because of https://github.com/scipy/scipy/issues/10103 but it has now been pointed out that castingx0tonp.complex128works around that. I also make use of callbacks during the iteration in my cuurent implemention but could probably get the same effect by wrapping the targetfuncpassed toscipy.optimize.newton. - Or maybe threre`s some other capability in mpmath or numdifftools that could be used more easily.
- I think I originally passed on