摘要:
# -*- 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... 阅读全文
摘要:
插值公式为: 差商递归公式为: 阅读全文
摘要:
#-*— 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... 阅读全文