Class BisectionSolver

All Implemented Interfaces:
BaseUnivariateSolver<UnivariateFunction>, UnivariateSolver

public class BisectionSolver extends AbstractUnivariateSolver
Implements the bisection algorithm for finding zeros of univariate real functions.

The function should be continuous but not necessarily smooth.

  • Constructor Details

    • BisectionSolver

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

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

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