📄 xindex.cwp.lib
字号:
XINDEX - determine index of x with respect to an array of x valuesxindex determine index of x with respect to an array of x valuesInput:nx number of x values in array axax array[nx] of monotonically increasing or decreasing x valuesx the value for which index is to be determinedindex index determined previously (used to begin search)Output:index for monotonically increasing ax values, the largest index for which ax[index]<=x, except index=0 if ax[0]>x; for monotonically decreasing ax values, the largest index for which ax[index]>=x, except index=0 if ax[0]<xNotes:This function is designed to be particularly efficient when calledrepeatedly for slightly changing x values; in such cases, the index returned from one call should be used in the next.Author: Dave Hale, Colorado School of Mines, 12/25/89
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -