Class RiddersSolver

All Implemented Interfaces:
BaseUnivariateSolver<UnivariateFunction>, UnivariateSolver

public class RiddersSolver extends AbstractUnivariateSolver
Implements the Ridders' Method for root finding of real univariate functions. For reference, see C. Ridders, A new algorithm for computing a single root of a real continuous function , IEEE Transactions on Circuits and Systems, 26 (1979), 979 - 980.

The function should be continuous but not necessarily smooth.

  • Constructor Details

    • RiddersSolver

      public RiddersSolver()
      Construct a solver with default accuracy (1e-6).
    • RiddersSolver

      public RiddersSolver(double absoluteAccuracy)
      Construct a solver.
      Parameters:
      absoluteAccuracy - Absolute accuracy.
    • RiddersSolver

      public RiddersSolver(double relativeAccuracy, double absoluteAccuracy)
      Construct a solver.
      Parameters:
      relativeAccuracy - Relative accuracy.
      absoluteAccuracy - Absolute accuracy.
  • Method Details