evaluate

fun evaluate(pointsArray: DoubleArray)

Evaluates the supplied function at the points in the array

Parameters

pointsArray

the array of points to evaluate


fun evaluate(theInterval: Interval, numPoints: Int): DoubleArray

Evaluates the function at the end points and at n points equally spaced within the interval. If n = 0, then 2 evaluations occur at both end points. If n = 1, then 3 evaluations occur at mid-point and both end points. The grid division is determined by the interval width divided by (n+1).

Return

the points that were evaluated

Parameters

theInterval

the interval for evaluations, must not be null

numPoints

the number of points within the interval to evaluate, must be greater than zero


fun evaluate(lowerLimit: Double, delta: Double, numPoints: Int): DoubleArray

Evaluates A set of points starting a lower limit and incrementing by delta

Return

the points, including the lower limit at index 0

Parameters

lowerLimit

the lower limit

delta

the delta increment

numPoints

the number of points after the lower limit, resulting in an upper limit