Skip to main content
1-Visitor
May 6, 2013
Question

program for eulers method

  • May 6, 2013
  • 2 replies
  • 1843 views

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

2 replies

25-Diamond I
May 6, 2013

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!!

1-Visitor
May 7, 2013

I changed them but now is says my y[i+1 is undefined?

25-Diamond I
May 7, 2013

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.

24-Ruby IV
May 6, 2013

Euler.png

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

RK.png