hasRoot

fun hasRoot(func: FunctionIfc, xLower: Double, xUpper: Double): Boolean

Returns true if the supplied interval contains a root

Return

true if there is a root for the function in the interval

Parameters

func

the function to check

xLower

the lower limit of the interval to check

xUpper

the upper limit of the interval to check


fun hasRoot(func: FunctionIfc, interval: Interval): Boolean

Returns true if the supplied interval contains a root

Return

true if there is a root for the function in the interval

Parameters

func

the function to check

interval

the interval to check