RootFinder

constructor(aFunction: FunctionIfc, anInterval: Interval, anInitialPoint: Double = (anInterval.lowerLimit + anInterval.upperLimit) / 2.0, maxIter: Int = 100, desiredPrec: Double = KSLMath.defaultNumericalPrecision)

Parameters

func

the function to search. The function must contain a root in the interval

anInterval

the interval to search

anInitialPoint

the initial point for the search, defaults to mid-point of the interval

maxIter

the maximum number of iterations allowed for the search, default = 100

desiredPrec

the desired precision of the search, default is KSLMath.defaultNumericalPrecision