11 2024 档案
摘要: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 d3f_dm3 = -3
阅读全文
摘要: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 # 假设这里应该是 -x
阅读全文
摘要:import numpy as np import pandas as pd import matplotlib.pyplot as plt from scipy.interpolate import interp1d, PchipInterpolator, CubicSpline from sci
阅读全文
摘要: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,
阅读全文
摘要: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
阅读全文
摘要: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.
阅读全文
摘要: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 +
阅读全文
浙公网安备 33010602011771号