摘要:
··· import pylab as plt import numpy as np from numpy.linalg import norm from scipy.interpolate import interp2d from mpl_toolkits.mplot3d import Axes3 阅读全文
摘要:
import numpy as np import pylab as plt from scipy.interpolate import interp1d from scipy.interpolate import lagrange a = np.loadtxt('F:\python数学建模与算法\ 阅读全文
摘要:
import numpy as np from scipy.interpolate import lagrange import matplotlib.pyplot as plt import matplotlib yx = lambda x: 1/(1+x**2) def fun(n): x = 阅读全文
摘要:
import numpy as np from scipy.interpolate import lagrange x0 = np.arange(1, 7) y0 = np.array([16, 18, 21, 17, 15, 12]) p = lagrange(x0, y0) print("从高到 阅读全文
摘要:
import numpy as np import matplotlib.pyplot as plt x0 = np.arange(1, 7) y0 = np.array([16, 18, 21, 17, 15, 12]) A = np.vander(x0) # 范德蒙行列式 p = np.lina 阅读全文