rational_interpolation 函数
构造通过给定数据点的有理函数。
语法
CurveFitting:-RationalInterpolation([[x1, y1], ...], x)CurveFitting:-RationalInterpolation(xValues, yValues, x)rational_interpolation(data, x)
参数与选项
data | 点对 [[x1, y1], ...],或分开的 x、y 列表。 |
|---|---|
var | 变量名称。 |
degree | 可选分子次数;未指定分母次数时按数据点数自动确定。 |
示例
- 倒数型插值
CurveFitting:-RationalInterpolation([[0, 1], [1, 1/2], [2, 1/3]], x)返回 1/(x + 1)。