cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

program for eulers method

ptc-4926800
1-Newbie

program for eulers method

I have to create a program for Euler's method. This is what I have so far. Any help would be appreciated.

4 REPLIES 4

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.

Euler.png

...and Runge-Kutta as a compliment...

RK.png

Top Tags