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

- January 19th 2009, 08:46 PMoxxiissiixxoExplicit Euler method
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 - January 19th 2009, 10:45 PMConstatine11
- January 19th 2009, 11:06 PMoxxiissiixxo
If possible, Matlab is prefer, but C is ok i think. Thanks!

- January 19th 2009, 11:34 PMConstatine11
- January 19th 2009, 11:47 PMoxxiissiixxo
thanks but I need to use the explicit euler method to solve this system

- January 20th 2009, 03:44 AMConstatine11
It is explicit, and it is Eulers method. It uses equation 68 from here

.