BisectionRootFinder

class BisectionRootFinder(func: FunctionIfc, interval: Interval, initialPoint: Double = (interval.lowerLimit + interval.upperLimit) / 2.0, maxIter: Int = 100, desiredPrec: Double = KSLMath.defaultNumericalPrecision) : RootFinder(source)

Constructors

Link copied to clipboard
constructor(func: FunctionIfc, interval: Interval, initialPoint: Double = (interval.lowerLimit + interval.upperLimit) / 2.0, maxIter: Int = 100, desiredPrec: Double = KSLMath.defaultNumericalPrecision)

Functions

Link copied to clipboard
protected open override fun evaluateIteration(): Double

Evaluate the result of the current iteration.

Link copied to clipboard
protected open override fun finalizeIterations()

Perform eventual clean-up operations (must be implemented by subclass when needed).

Link copied to clipboard
protected open override fun initializeIterations()

Initializes internal parameters to start the iterative process.