Hi I want to write a program to solve these 2 ODEs, but I do know how to do it. Please help!
y'_1 = -y_1 + y_2
y'_2 = -100(y_2 - sin t) + cos t
t is from 0 to 1 and with inital value y_1= 1, y_2 = 2.
time step = 0.01
Printable View
Hi I want to write a program to solve these 2 ODEs, but I do know how to do it. Please help!
y'_1 = -y_1 + y_2
y'_2 = -100(y_2 - sin t) + cos t
t is from 0 to 1 and with inital value y_1= 1, y_2 = 2.
time step = 0.01
If possible, Matlab is prefer, but C is ok i think. Thanks!
thanks but I need to use the explicit euler method to solve this system
It is explicit, and it is Eulers method. It uses equation 68 from here
.