-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add methods that require derivatives #5
Comments
See also #19. Maybe we keep this library focused as is? |
What are some of the design points for derivative-based root-finding methods?
I think two or three if not more items in the list have overlap with this library, and could benefit from reuse. The first question to answer is perhaps if the derivative-based methods would go to a separate module or directly into Personally I think it would be useful to have some flexibility:
Using the fpm`s tree-shaking mechanism, a user wanting to keep his compile time as low as possible, could import only the specific module instead of the top-level one. GSL puts the function-only, and derivative based methods under the same <gsl/gsl_roots.h> header; also the Boost Math Toolkit includes derivative-based solvers in the same header <boost/math/tools/roots.hpp> as the function-only methods. SciPy includes them under the same interface scipy.optimize.root_scalar using the def scipy.optimize.root_scalar(f, args=(), method=None, bracket=None,
fprime=None, fprime2=None, x0=None, x1=None,
xtol=None, rtol=None, maxiter=None, options=None):
... Based on this I'd argue that users will find it easier to have these in the same package. Also aspects such as the documentation, tutorials, and distribution mechanism can be unified. |
e.g, Newton-Raphson, Halley.
The text was updated successfully, but these errors were encountered: