1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Runge-kutta vs euler

  1. Jul 21, 2008 #1
    Hi, I dunno if this is the right forum to adress, but I will try nevertheless
    Im solving a simple two-dimensional differential equation:

    dx/dt = (-y,x)

    which will give a circle when integrating over time.

    Now, the problem is that the simple euler scheme seems to be a lot more precise than the runge-kutta fourth order method. I've spend two whole days trying to debug my code and I feel stuck. so, are there some special cases where rk is worse than euler -- or is there no other explanation than I have made a mistake somewhere (it's four lines of code and my supervisors have had a look without the error popping up.)
     
  2. jcsd
  3. Jul 21, 2008 #2
    great monday... just after complaining in here i found that Ive messed an extra time-increment in somewhere in the code :p sorry for the inconvenience
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Runge-kutta vs euler
  1. Who is Iris Runge? (Replies: 3)

  2. Disprooving Euler (Replies: 5)

  3. Euler's number (Replies: 7)

Loading...