Roots.jl icon indicating copy to clipboard operation
Roots.jl copied to clipboard

Finishing with bisection?

Open ChrisRackauckas opened this issue 6 years ago • 1 comments

https://github.com/JuliaMath/Roots.jl#convergence

The Bisection and Roots.A42 methods are guaranteed to converge even if the tolerances are set to zero, so these are the defaults. Non-zero values for xatol and xrtol can be specified to reduce the number of function calls when lower precision is required.

Could it be helpful to have an option for the other methods to finalize the calculation by using Bisection or A42?

Xref: https://github.com/JuliaDiffEq/DiffEqBase.jl/pull/350 @kanav99

ChrisRackauckas avatar Oct 15 '19 09:10 ChrisRackauckas

See the method on line 662 of find_zero.jl. I think that does what you want. If not, it can be suitably adjusted.

On Tue, Oct 15, 2019 at 5:58 AM Christopher Rackauckas < [email protected]> wrote:

https://github.com/JuliaMath/Roots.jl#convergence

The Bisection and Roots.A42 methods are guaranteed to converge even if the tolerances are set to zero, so these are the defaults. Non-zero values for xatol and xrtol can be specified to reduce the number of function calls when lower precision is required.

Could it be helpful to have an option for the other methods to finalize the calculation by using Bisection or A42?

Xref: JuliaDiffEq/DiffEqBase.jl#350 https://github.com/JuliaDiffEq/DiffEqBase.jl/pull/350 @kanav99 https://github.com/kanav99

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JuliaMath/Roots.jl/issues/165?email_source=notifications&email_token=AADG6TEYTZLTBDM64I5ZIPLQOWH33A5CNFSM4JA2EKIKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HR2KAPA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADG6TCUELCD6OETX53S4M3QOWH33ANCNFSM4JA2EKIA .

-- John Verzani Department of Mathematics College of Staten Island, CUNY [email protected]

jverzani avatar Oct 15 '19 12:10 jverzani