Class NewtonRootFinder


  • public class NewtonRootFinder
    extends RootFinder
    This class implements the Newton method for finding zeros of a function.
    Author:
    Matthias Thimm
    • Field Detail

      • PRECISION

        public static final double PRECISION
        The precision of the approximation. The actual used precision depends on the number of variables.
        See Also:
        Constant Field Values
      • MAX_FIX_ITERATIONS

        public static final int MAX_FIX_ITERATIONS
        The maximum number of fixing iterations.
        See Also:
        Constant Field Values
    • Constructor Detail

      • NewtonRootFinder

        public NewtonRootFinder​(Term function,
                                Map<Variable,​Term> startingPoint)
        Creates a new Newton root finder for the given starting point and the given function
        Parameters:
        function - a function
        startingPoint - the starting point
      • NewtonRootFinder

        public NewtonRootFinder​(List<Term> functions,
                                Map<Variable,​Term> startingPoint)
        Creates a new Newton root finder for the given starting point and the given (multi-dimensional) function
        Parameters:
        functions - a list of functions
        startingPoint - the starting point