分段微分方程的求解

2024-10-05 10:13:16 发布

您现在位置:Python中文网/ 问答频道 /正文

我想用SciPy解一个分段微分方程组(物理模拟)

以下是方程式和初始条件(在Mathematica中)

https://i.stack.imgur.com/s2ILs.png

但是,它只是部分工作,因为我无法增加NDSolveValue的步长来防止错误,因此我想知道是否可以在Python中这样做。(或者,如果你能用Mathematica解决这个问题,那也太好了。)

这里有一个关于Mathematica StackExchange的类似问题:https://mathematica.stackexchange.com/questions/236893/solving-piecewise-differential-equation


Tags: httpscompngstack错误物理scipy分段

热门问题