Results 1 to 3 of 3

Math Help - Euler method vs RK4

  1. #1
    Newbie
    Joined
    Jan 2010
    Posts
    2

    Euler method vs RK4

    Hi,

    Is RK4 strictly a better approximation than the Euler method? I'm writing the code for a program comparing the two on a particular ODE but I'm finding that the Euler gives the better results. I'm pretty sure my code is right (I can post this later if needs be) so I'm a little confused as I'm certain RK4 should be absolutely better.

    Thanks

    PS Also, does this forum support LaTex?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Senior Member Shanks's Avatar
    Joined
    Nov 2009
    From
    BeiJing
    Posts
    374
    Yes, of course it support Latex.
    PS I don't understand what you say since I have never learn RK4 and Euler method you mentioned.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by markchester View Post
    Hi,

    Is RK4 strictly a better approximation than the Euler method? I'm writing the code for a program comparing the two on a particular ODE but I'm finding that the Euler gives the better results. I'm pretty sure my code is right (I can post this later if needs be) so I'm a little confused as I'm certain RK4 should be absolutely better.

    Thanks

    PS Also, does this forum support LaTex?
    Euler is exact when the actual solution is linear, RK4 is exact for polynomials up to n-th order, n>1 but I don't remember its exact value you can look it up.

    For a fixed step size RK4 should never be worse than Euler with the same step size. Excepting when there are discontinuities or other non-polynomial like behaviours in the equation.

    CB
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Euler method
    Posted in the Differential Equations Forum
    Replies: 2
    Last Post: May 11th 2011, 04:59 AM
  2. Euler's method
    Posted in the Calculus Forum
    Replies: 0
    Last Post: March 8th 2010, 04:48 PM
  3. Euler's Method
    Posted in the Differential Equations Forum
    Replies: 2
    Last Post: November 9th 2009, 07:20 AM
  4. Euler's Method
    Posted in the Differential Equations Forum
    Replies: 6
    Last Post: March 4th 2009, 06:19 AM
  5. Euler's Method
    Posted in the Advanced Applied Math Forum
    Replies: 1
    Last Post: July 20th 2007, 10:07 AM

Search Tags


/mathhelpforum @mathhelpforum