Function TMGINT
Performs linear interpolation in a table. Returns a value of the dependent variable (y) when provide the value of the independent variable (x).
Calling convention:
y = tmgint(x,xarray,yarray,n)
Variable name | Data type | Description |
---|---|---|
Return value | ||
y
|
Real | The value of the dependent variable. |
Arguments | ||
x
|
Real | The input value of the independent variable for which a value will be returned. |
xarray
|
Real Array (n) | A list of value of the independent variable. |
yarray
|
Real Array (n) | A list of values of the dependent variable, corresponding to the values in xarray. |
n
|
Integer | The input value of entries number in xarray and yarray. |