用VB编写的多项式拟合程序
Public Function funPolynomial(Num As Long, x() As Single, y() As Single, Degree As Integer, AA() As Single) As Long
多项式曲线拟合 y=a0+a1*x+a2*x^2+an*x^n
Num为输入数据点个数
x()为输入数据点横坐标组成的数组
y()为输入数据点纵坐标组成的数组
Degree为要拟合的多项式曲线次数
AA() 为待求系数,为输出项
failed to translate (2009-10-16, Visual Basic, 5KB, 下载117次)