功能:连因式求解(Continue Fraction)

格式:ContinueFraction(x,n),ContinueFraction(x)

说明:x为要连因式分解的值,n为获取的项数,n默认取10.函数执行完毕返回一个一维的数组a,即x=a(1)+1/(a(2)+1/(a(3)+1/(a(4)+……

关于:{Continue Fraction<http://mathworld.wolfram.com/ContinuedFraction.html>}

例子:

a=ContinueFraction(5.67894,7)//回车后返回如下的结果
a   =
[ 6.00000000000000   -3.0000000000000   -9.0000000000000   4.00000000000000   -2.0000000000000   -3.0000000000000   -5.0000000000000 ]