标签:odeint

  • 当scipy.integrate.odeint中的输出达到0时,停止积分 - python

    时间:2020-7-20

    我已经编写了一个代码,该代码使用拖动来查看对象的弹丸运动。我正在使用scipy中的odeint进行正向Euler方法。集成运行直到达到时间限制。我想在达到此限制或ry = 0的输出(即弹丸着陆)时停止积分。 def f(y, t): # takes vector y(t) and time t and returns function y_dot = F(t […]