摘要: # -*- coding: utf-8 -*- #Program 0.5 Hermite Interpolation import matplotlib.pyplot as plt import numpy as np #计算基函数的导数值 def dl(i, xi): result = 0.0 for j in range(0,len(xi)): if... 阅读全文
posted @ 2017-03-27 11:58 KennyRom 阅读(4588) 评论(0) 推荐(1) 编辑
摘要: 插值公式为: 差商递归公式为: 阅读全文
posted @ 2017-03-27 10:28 KennyRom 阅读(2777) 评论(1) 推荐(1) 编辑
摘要: #-*— coding:utf-8 -*- #Program 0.3 Lagrange Interpolation import matplotlib.pyplot as plt import numpy as np import scipy as np import random #随机生成10个介于(-255,255)的结点 def getdata(): a = np.zeros(10... 阅读全文
posted @ 2017-03-27 09:09 KennyRom 阅读(1454) 评论(0) 推荐(0) 编辑