hasRoot

fun hasRoot(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

xLower

the lower limit of the interval to check

xUpper

the upper limit of the interval to check


fun hasRoot(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

interval

the interval to check