How to stop a numerical resolution of a differential equation with a certain condition

37 Views Asked by At

I am trying to solve a rather complex differential equation :

enter image description here

I'm trying to solve it numerically with odeint function. I've succeeded in doing so, but i would like to add a condition, and to stop the resolution when dY/dt is close to 0. I have found nowhere how to do so, would you have any ideas ? Thanks !

0

There are 0 best solutions below