(n,d) = rationalInterpolation(pts, vals, R)
Given a list of points $pts = \{p_1,\dots,p_k\}$ and values $vals = \{v_1,\dots,v_k\}$, attempts to find a rational function $f = g/h$, such that $f(p_i) = v_i$. The method first tries to find polynomials $g,h$ of degree 0; if this fails, it tries to find $g,h$ of degree 1 and so on. This procedure stops when there are not enough points to compute the next degree, in which case an error will be thrown.
|
|
|
|