I was given a semi-finished chunk of code and asked to implement euler's method to solve it.
I've looked at countless examples of implementations but i think the finished chunk confuse me
I have acces to the function myode(t,y) that should give me a specific solution based on t and y
This is the code I was given.
The issue I want help with is understanding how to utilize the pre-written code, my current attempt is
y_values(:,i1)= y_values(i1) + dt * myode(t_values(i1),y_values(i1))
Any help is greatly appreciated. I've tried rewriting the code back and forth for a day now and i'm not making any progress.