Root Finder
abstract class RootFinder(aFunction: FunctionIfc, anInterval: Interval, anInitialPoint: Double = (anInterval.lowerLimit + anInterval.upperLimit) / 2.0, maxIter: Int = 100, desiredPrec: Double = KSLMath.defaultNumericalPrecision) : FunctionalIterator
Parameters
func
the function to search. The function must contain a root in the interval
an Interval
the interval to search
an Initial Point
the initial point for the search, defaults to mid-point of the interval
max Iter
the maximum number of iterations allowed for the search, default = 100
desired Prec
the desired precision of the search, default is KSLMath.defaultNumericalPrecision
Inheritors
Constructors
Link copied to clipboard
constructor(aFunction: FunctionIfc, anInterval: Interval, anInitialPoint: Double = (anInterval.lowerLimit + anInterval.upperLimit) / 2.0, maxIter: Int = 100, desiredPrec: Double = KSLMath.defaultNumericalPrecision)
Properties
Link copied to clipboard
The achieved precision.
Link copied to clipboard
Desired precision.
Link copied to clipboard
Link copied to clipboard
The initial point for the search
Link copied to clipboard
The lower limit for the search interval
Link copied to clipboard
The upper limit for the search interval
Link copied to clipboard
Number of iterations performed.
Link copied to clipboard
Maximum allowed number of iterations.
Functions
Link copied to clipboard
Check to see if the result has been attained.
Link copied to clipboard
Link copied to clipboard
fun setUpSearch(aFunction: FunctionIfc, anInterval: Interval, anInitialPoint: Double = (anInterval.lowerLimit + anInterval.upperLimit) / 2.0)
The interval must have a root for the function and the initial point must be within the interval