摘要:
`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 阅读全文
摘要:
`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 阅读全文
摘要:
`import numpy as np import pandas as pd import matplotlib.pyplot as plt from scipy.interpolate import interp1d, PchipInterpolator, CubicSpline from sc 阅读全文
摘要:
`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 阅读全文
摘要:
`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 - 阅读全文
摘要:
`import numpy as np import matplotlib.pyplot as plt from scipy.interpolate import interp1d, CubicSpline 已知的温度和对应的体积 T_known = np.array([700, 720, 740, 阅读全文
摘要:
`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)) 阅读全文