Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
How to solve the intergalintegral-like energy equation with Sagdeev potential numerically in Python? (Updated)
In the code below, I first define a function for the first order-order differential equation. Then, set boundary conditions for each mach number, $M$, and finally, I use odeint from the scipy.integrate module in Python to solve the boundary value problem. The plot of the solutions is shown in the last figure.
OuputOutput:
How to solve the intergal-like energy equation with Sagdeev potential numerically in Python? (Updated)
In the code below, I first define a function for the first order differential equation. Then, set boundary conditions for each mach number, $M$, and finally, I use odeint from the scipy.integrate module in Python to solve the boundary value problem. The plot of the solutions is shown in the last figure.
Ouput:
How to solve the integral-like energy equation with Sagdeev potential numerically in Python?
In the code below, I first define a function for the first-order differential equation. Then, set boundary conditions for each mach number, $M$, and finally, I use odeint from the scipy.integrate module in Python to solve the boundary value problem. The plot of the solutions is shown in the last figure.