📄 intlin.cwp.lib
字号:
INTLIN - evaluate y(x) via linear interpolation of y(x[0]), y(x[1]), ...intlin evaluate y(x) via linear interpolation of y(x[0]), y(x[1]), ...Function Prototype:void intlin (int nin, float xin[], float yin[], float yinl, float yinr, int nout, float xout[], float yout[]);Input:nin length of xin and yin arraysxin array[nin] of monotonically increasing or decreasing x valuesyin array[nin] of input y(x) valuesyinl value used to extraplate y(x) to left of input yin valuesyinr value used to extraplate y(x) to right of input yin valuesnout length of xout and yout arraysxout array[nout] of x values at which to evaluate y(x)Output:yout array[nout] of linearly interpolated y(x) valuesNotes:xin values must be monotonically increasing or decreasing.Extrapolation of the function y(x) for xout values outside the rangespanned by the xin values in performed as follows: For monotonically increasing xin values, yout=yinl if xout<xin[0], and yout=yinr if xout>xin[nin-1]. For monotonically decreasing xin values, yout=yinl if xout>xin[0], and yout=yinr if xout<xin[nin-1].If nin==1, then the monotonically increasing case is used.Author: Dave Hale, Colorado School of Mines, 06/02/89
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -