上一页 1 2 3 4 5 6 ··· 11 下一页
摘要: import numpy as np import pandas as pd import matplotlib.pyplot as plt from scipy.interpolate import interp1d, PchipInterpolator, CubicSpline from sci 阅读全文
posted @ 2024-11-12 13:55 方~~ 阅读(26) 评论(0) 推荐(0)
摘要: import numpy as np import matplotlib.pyplot as plt from scipy.optimize import curve_fit, leastsq, least_squares from scipy.constants import e def g(x, 阅读全文
posted @ 2024-11-12 13:51 方~~ 阅读(16) 评论(0) 推荐(0)
摘要: import numpy as np import matplotlib.pyplot as plt from scipy.interpolate import griddata def f(x, y): x2 = x**2 return (x2 - 2*x) * np.exp(-x2 - y**2 阅读全文
posted @ 2024-11-12 13:47 方~~ 阅读(45) 评论(0) 推荐(0)
摘要: import numpy as np import matplotlib.pyplot as plt from scipy.interpolate import interp1d, CubicSpline T = np.array([700, 720, 740, 760, 780]) V = np. 阅读全文
posted @ 2024-11-12 13:44 方~~ 阅读(22) 评论(0) 推荐(0)
摘要: import numpy as np import scipy.interpolate as spi import scipy.integrate as spi_integrate def g(x): return ((3*x**2 + 4*x + 6) * np.sin(x)) / (x**2 + 阅读全文
posted @ 2024-11-12 13:41 方~~ 阅读(21) 评论(0) 推荐(0)
摘要: #程序文件ex7_4.py import numpy as np from scipy.interpolate import interp1d from scipy.interpolate import lagrange import pylab as plt a = np.loadtxt('dat 阅读全文
posted @ 2024-10-29 14:13 方~~ 阅读(15) 评论(0) 推荐(0)
摘要: #程序文件ex7_3.py import numpy as np import pylab as plt from scipy.interpolate import lagrange yx = lambda x: 1/(1+x**2) def fun(n): x = np.linspace(-5, 阅读全文
posted @ 2024-10-29 13:58 方~~ 阅读(12) 评论(0) 推荐(0)
摘要: import numpy as np matches = np.array([ [0, 1, 0, 1, 1, 1], # 1队 [0, 0, 0, 1, 1, 1], # 2队 [1, 1, 0, 1, 0, 0], # 3队 [0, 0, 0, 0, 1, 1], # 4队 [0, 0, 1, 阅读全文
posted @ 2024-10-26 23:14 方~~ 阅读(11) 评论(0) 推荐(0)
摘要: import numpy as np distances = np.array([ [0, 2, 7, np.inf, np.inf, np.inf], [2, 0, 4, 6, 8, np.inf], [7, 4, 0, 1, 3, np.inf], [np.inf, 6, 1, 0, 1, 6] 阅读全文
posted @ 2024-10-26 23:12 方~~ 阅读(20) 评论(0) 推荐(0)
摘要: import pylab as plt import numpy as np ax=plt.axes(projection='3d') X = np.arange(-6, 6, 0.25) Y = np.arange(-6, 6, 0.25) X, Y = np.meshgrid(X, Y) Z = 阅读全文
posted @ 2024-10-15 20:26 方~~ 阅读(11) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 11 下一页