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, 09: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, 11:45 PMConstatine11
- January 20th 2009, 12:06 AMoxxiissiixxo
If possible, Matlab is prefer, but C is ok i think. Thanks!

- January 20th 2009, 12:34 AMConstatine11
- January 20th 2009, 12:47 AMoxxiissiixxo
thanks but I need to use the explicit euler method to solve this system

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

.