Python 最小二乘法多项式拟合曲线numpy.polyfit(),numpy.poly1d(),pylab
原文地址:http://wiki.klniu.com/zh-hans/Python/Modules/Scipyimportnumpyasnpfromscipy.optimizeimportleastsqimportpylabaspl x=np.arange(1,17,1)y=np.array([4.00,6.40,8.00,8.80,9.22,9.50,9.70,9.86,10.00,10.20,