yxtoxy.cwp.lib

来自「su 的源代码库」· LIB 代码 · 共 32 行

LIB
32
字号
YXTOXY - Compute a regularly-sampled, monotonically increasing function x(y)	from a regularly-sampled, monotonically increasing function y(x) by	inverse linear interpolation.yxtoxy		compute a regularly sampled function x(y) from a regularly		sampled, monotonically increasing function y(x)Function Prototype:void yxtoxy (int nx, float dx, float fx, float y[], 	int ny, float dy, float fy, float xylo, float xyhi, float x[]);Input:nx		number of samples of y(x)dx		x sampling interval; dx>0.0 is requiredfx		first xy		array[nx] of y(x) values; y[0] < y[1] < ... < y[nx-1] requiredny		number of samples of x(y)dy		y sampling interval; dy>0.0 is requiredfy		first yxylo		x value assigned to x(y) when y is less than smallest y(x)xyhi		x value assigned to x(y) when y is greater than largest y(x)Output:x		array[ny] of x(y) valuesNotes:User must ensure that:(1) dx>0.0 && dy>0.0(2) y[0] < y[1] < ... < y[nx-1]Author:  Dave Hale, Colorado School of Mines, 06/02/89

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?