摘要:
import numpy as np from scipy.interpolate import interp1d, interp2d, UnivariateSpline, griddata import matplotlib.pyplot as plt np.random.seed(114514) 阅读全文
摘要:
import numpy as np from scipy.interpolate import interp1d, interp2d, UnivariateSpline, griddata import matplotlib.pyplot as plt t0 = np.linspace(700, 阅读全文
摘要:
import numpy as np from scipy.interpolate import interp1d, interp2d, UnivariateSpline, griddata import matplotlib.pyplot as plt from scipy.integrate i 阅读全文
摘要:
··· import numpy as np t=np.arange(8) y=np.array([27.0, 26.8, 26.5, 26.3, 26.1, 25.7, 25.3, 24.8]) tb=t.mean(); yb=y.mean() a1=sum((t-tb)(y-yb))/sum(( 阅读全文
摘要:
··· 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 阅读全文