INTCUB - evaluate y(x), y'(x), y''(x), ... via piecewise cubic interpolation intcub evaluate y(x), y'(x), y''(x), ... via piecewise spline interpolation Function Prototype: void intcub (int ideriv, int nin, float xin[], float ydin[][4], Input: ideriv =0 if y(x) desired; =1 if y'(x) desired, ... nin length of xin and ydin arrays xin array[nin] of monotonically increasing or decreasing x values ydin array[nin][4] of y(x), y'(x), y''(x), and y'''(x) nout length of xout and yout arrays xout array[nout] of x values at which to evaluate y(x), y'(x), ... Output: yout array[nout] of y(x), y'(x), ... values Notes: xin values must be monotonically increasing or decreasing. Extrapolation of the function y(x) for xout values outside the range spanned by the xin values is performed using the derivatives in ydin[0][0:3] or ydin[nin-1][0:3], depending on whether xout is closest to xin[0] or xin[nin-1], respectively. Reference: See: Greville, T. N., Theory and Application of Spline Functions, Academic Press for a general discussion of spline functions. Author: Dave Hale, Colorado School of Mines, 06/02/89