argmin-rs / argmin

Numerical optimization in pure Rust
http://argmin-rs.org
Apache License 2.0
1k stars 79 forks source link

Implement brenth for root finding #355

Open qqlearn123 opened 1 year ago

qqlearn123 commented 1 year ago

It would be great if we also have brenth implemented as in scipy.optimize.brenth.

stefan-k commented 1 year ago

There is BrentRoot, which, as far as I remember, is similar to brentq in scipy. Maybe @Armavica, who implemented BrentRoot in #77 can comment.

Edit: My bad, BrentRoot was actually implemented by @xemwebe in #22.

qqlearn123 commented 1 year ago

Yes, I know that and I am using it now.

From my experiments, brenth seems to be faster for my problem at hand. So, just curious if we could have brenth implemented as well.