Using the boost C ++ odeint library, is it possible to solve a second-order differential equation defined as follows:
m*x''[i] + x'[i] = K*\sum{j=1,N} sin(x[j] - x[i]), where i = 1,2,3..N.
m = 1, K = 1
where the initial value of x is a vector or an array of N uniformly generated random numbers from 0 to 2 * pi. I want to integrate the above equation with runge_kutta stepper odeint?
I can solve this by writing the above equation. in two differential equations of the first order, but then in this case, how will the odeint pedometer be written or modified?
source
share