Thanks HallsofIvy!
I'll give you a little bit more of insight about my problem.
The equations are for an electric generator in stand alone operation, the actual equation is
vd=Lq*iq*wr-Rs*id-Ld*did/dt (I wrote a different one for clarity)
where Lq, Ld, and Rs are constant parameters and...
Hello,
I need to solve numerically an equation of the form
v(t) = k1*z(t)*w(t)-k2*i(t)-k3*di(t)/dt
The issue is that rungekutta methods are useful for solving
di(t)/dt = 1/k3 * [ k1*z(t)*w(t)-k2*i(t)-k3*-v(t) ]
but I need to solve for v(t)
What I did was:
v...