摘要:
`import numpy as np import matplotlib.pyplot as plt from scipy.integrate import solve_ivp 定义微分方程模型 def model(t, y): f, df_dm, d2f_dm2, T, dT_dm = y d3 阅读全文
posted @ 2024-11-17 15:08
VVV1
阅读(11)
评论(0)
推荐(0)
摘要:
`import numpy as np import matplotlib.pyplot as plt from scipy.integrate import solve_ivp 定义微分方程系统 def system(t, state): x, y = state dxdt = -x - y dy 阅读全文
posted @ 2024-11-17 15:03
VVV1
阅读(21)
评论(0)
推荐(0)
摘要:
`import numpy as np import pandas as pd import matplotlib.pyplot as plt from scipy.interpolate import interp1d, PchipInterpolator, CubicSpline from sc 阅读全文
posted @ 2024-11-17 14:57
VVV1
阅读(16)
评论(0)
推荐(0)
摘要:
`import numpy as np import matplotlib.pyplot as plt from scipy.optimize import curve_fit, leastsq, least_squares 定义函数 g(x, a, b) def g(x, a, b): retur 阅读全文
posted @ 2024-11-17 14:49
VVV1
阅读(18)
评论(0)
推荐(0)
摘要:
`import numpy as np import matplotlib.pyplot as plt from scipy.interpolate import griddata def f(x, y): x2 = x2 return (x2 - 2*x) * np.exp(-x2 - y2 - 阅读全文
posted @ 2024-11-17 14:41
VVV1
阅读(12)
评论(0)
推荐(0)
摘要:
`import numpy as np import matplotlib.pyplot as plt from scipy.interpolate import interp1d, CubicSpline 已知的温度和对应的体积 T_known = np.array([700, 720, 740, 阅读全文
posted @ 2024-11-17 13:32
VVV1
阅读(18)
评论(0)
推荐(0)
摘要:
`import numpy as np import scipy.interpolate as spi import scipy.integrate as spi_integrate 定义函数 g(x) def g(x): return ((3x**2 + 4x + 6) * np.sin(x)) 阅读全文
posted @ 2024-11-17 13:16
VVV1
阅读(24)
评论(0)
推荐(0)
浙公网安备 33010602011771号