Class FunctionalIterator

  • Direct Known Subclasses:
    RootFinder

    public abstract class FunctionalIterator
    extends DBHIterativeProcess
    Iterative process based on a one-variable function, having a single numerical result.
    • Field Detail

      • result

        protected double result
        Best approximation of the zero.
      • f

        protected FunctionIfc f
        Function for which the zero will be found.
    • Constructor Detail

      • FunctionalIterator

        public FunctionalIterator​(FunctionIfc func)
        Generic constructor.
        Parameters:
        func - OneVariableFunction
    • Method Detail

      • getResult

        public double getResult()
        Returns the result (assuming convergence has been attained).
        Returns:
      • relativePrecision

        public double relativePrecision​(double epsilon)
        Parameters:
        epsilon - double
        Returns:
        double
      • setFunction

        protected void setFunction​(FunctionIfc func)
        Parameters:
        func - OneVariableFunction