摘要: 9.3 点击查看代码 import matplotlib.pyplot as plt data = [ [4.13, 3.86, 4.00, 3.88, 4.02, 4.02, 4.00], [4.07, 3.85, 4.02, 3.88, 3.95, 3.86, 4.02], [4.04, 4.0 阅读全文
posted @ 2025-01-03 20:38 2023310143015 阅读(18) 评论(0) 推荐(0)
摘要: 8.4代码 点击查看代码 import numpy as np import matplotlib.pyplot as plt from scipy.integrate import solve_ivp def system(t, state): x, y = state dxdt = -x*3 - 阅读全文
posted @ 2025-01-03 20:23 2023310143015 阅读(27) 评论(0) 推荐(0)
摘要: 代码 点击查看代码 import numpy as np import pandas as pd import matplotlib.pyplot as plt from scipy.interpolate import interp1d, PchipInterpolator, CubicSplin 阅读全文
posted @ 2025-01-03 20:17 2023310143015 阅读(12) 评论(0) 推荐(0)
摘要: 代码 点击查看代码 import numpy as np from scipy.optimize import curve_fit, least_squares from scipy.linalg import lstsq import matplotlib.pyplot as plt def g( 阅读全文
posted @ 2025-01-03 19:26 2023310143015 阅读(11) 评论(0) 推荐(0)
摘要: 代码 点击查看代码 import numpy as np from scipy.interpolate import griddata import matplotlib.pyplot as plt # 定义函数 def f(x, y): return (x ** 2 - 2 * x) * np.e 阅读全文
posted @ 2025-01-03 19:24 2023310143015 阅读(4) 评论(0) 推荐(0)
摘要: 代码 点击查看代码 import numpy as np from scipy.interpolate import interp1d, CubicSpline import matplotlib.pyplot as plt # 给定数据 T = np.array([700, 720, 740, 7 阅读全文
posted @ 2025-01-03 19:23 2023310143015 阅读(9) 评论(0) 推荐(0)