Note: | This function expects the values in X_array to be sorted in ascending order. |
X_array | An array of at least two real values that determine the range of the curve. Values must be in ascending order. |
Y_array | An array containing the same number of real values as the X_array. Used to define the domain of the curve. |
X_value | A value which "indexes" into the X_array. |
xx | -2, -1, 0, 1, 2, 3, 4 |
yy | 0, 1, 2, 2.5, 3, 4, 5 |