Luc Maisonobe wrote:
The UnivariateRealIntegrator interface shares most of the convergence settings that have been put in the new ConvergenceAlgorithm super-interface. The only missing part is absolute accuracy settings.It seems interesting for consistency to follow the same pattern as UnivariateRealSolver and UnivariateRealMinimizer and to have UnivariateRealIntegrator implement the ConvergenceAlgorithm interface. The main change would be that in the Romberg, Simpson and Trapezoid integrators, the check: if (Math.abs(s - olds) <= Math.abs(relativeAccuracy * olds)) { ... } would be changed to: final double error = Math.abs(s - olds); if (error <= Math.abs(relativeAccuracy * olds) && error < absoluteAccuracy) { ... } If nobody complains, I will do this change soon.
+1 Phil
Luc --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
