Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
I have to create a program for Euler's method. This is what I have so far. Any help would be appreciated.
You will have to use vector indices in your prog, not the literal index as you did in some cases.
The way you have written it, vector y will consist of a bunch of zeros!!
I changed them but now is says my y[i+1 is undefined?
Amy Kippen wrote:
I changed them but now is says my y[i+1 is undefined?
Maybe something went wrong in deleting the literal index. Delete the whole index and retype it, that should work.
...and Runge-Kutta as a compliment...