find Interval
fun findInterval(func: FunctionIfc, interval: Interval, numIter: Int = numIterations, searchFact: Double = searchFactor): Boolean
Using the supplied function and the initial interval provided, try to find a bracketing interval by expanding the interval outward
Return
true if one is found
Parameters
func
the function to evaluate
interval
the starting interval, which is mutated
num Iter
the number of iterations outward
search Fact
the expansion factor
Given a function and a starting interval, subdivide the interval into n subintervals and attempt to find nmax bracketing intervals that contain roots
Return
The list of bracketing intervals
Parameters
func
the function to evaluate
interval
the starting (main) interval
n
number of subdivisions of the main interval
n Max
max number of bracketing intervals