Continued fraction interpolation

where yij=(xi-xj)/(yi-yj), yijk=(xj-xk)/(yij-yik), and yijkl=(xk-xl)/(yijk-yijl)c.

 

Algorithm:

(1)   Sort out xfs and yfS in term of xfs in ascending order.

(2)   Calculate y1,y12,y123,y1234,c, and y1234cn.

(3)   Compute the continued fraction backward.

 

Attention:

(a)   The same values in y cannot be allowed.

(b)   This method is not for smoothing with errors but for interpolation of points on a function.