Previous Up Next

10.2.5  Rational interpolation without poles

The ratinterp command computes a family of pole-free rational functions which interpolate given data. Rational interpolation usually gives better results than the classic polynomial interpolation, which may oscillate highly in some cases.

Examples

ratinterp([1,3,5,8],[2,-1,3,4],x,1)
     
−19 x3+288 x2−1133 x+1200
x2−48 x+210
          
ratinterp([1,3,5,8],[2,-1,3,4],x,2)
     
29 x3
168
+
17 x2
7
1507 x
168
+
61
7
          

Previous Up Next