roots-fortran
roots-fortran copied to clipboard
A modern Fortran library for finding the roots of continuous scalar functions of a single real variable, using derivative-free methods.
It could be nice to support a vector-instruction-friendly interface. There is an open issue for this in https://github.com/scipy/scipy/issues/7242. The purpose is to solve a family of problems: $$f(x_k,p_k) = 0,...
https://github.com/jacobwilliams/roots-fortran/blob/60524bc4f491a50ae1b2e538e1e486551812b9db/src/root_module.F90#L1837 I noticed the sign comparison is performed inconsistently; i.e. in some places as `fa*fc < 0` and in some places you extract the sign explicitly like above. The latter...
Hi, Thanks for making these codes available. I'm trying to find a way to pass additional parameters (beisdes the argument) to the objective function, eg instead of f(x) have f(x,...
e.g, Newton-Raphson, Halley.
Is there any interest to have custom termination conditions? This could be implemented with a user-provided callback (procedure pointer). If nothing else it could be useful for comparison with other...
https://github.com/jacobwilliams/roots-fortran/blob/60524bc4f491a50ae1b2e538e1e486551812b9db/src/root_module.F90#L2524 The excerpt below is taken from Kahaner, Moler, & Nash, Numerical Methods and Software, 1989, Prentice-Hall, Inc.: ![image](https://user-images.githubusercontent.com/21085643/182845316-588122a2-4a52-4d89-aac4-aaceb7d3f3cb.png) According to [Herbie](https://herbie.uwplse.org/) this rearrangement seems irrelevant in FP64, however I...
The abstract interface func has two arguments, "me" of type "class(root_solver)" and the proper argument of the function. The first serves no purpose for the evaluation of the function and...
If so, some preliminary work on prior art can be found [at this comment](https://github.com/fortran-lang/stdlib/issues/87#issuecomment-755596293) and below.