Results 1 to 4 of 4

Math Help - Euler's improved method with subroutines

  1. #1
    Member diddledabble's Avatar
    Joined
    Jul 2009
    Posts
    80

    Euler's improved method with subroutines

    How do you use the improved Euler's method subroutine with step size h=0.2 to approximate the solution to the initial value problem:
    y'= (1/x)(y^2+y)
    at points x= 1.2, 1.4, 1.6, 1.8 and N=4

    My book shows the "improved" method just like the original and I want to see an example and know how it is improved or different from the original.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by diddledabble View Post
    How do you use the improved Euler's method subroutine with step size h=0.2 to approximate the solution to the initial value problem:
    y'= (1/x)(y^2+y)
    at points x= 1.2, 1.4, 1.6, 1.8 and N=4

    My book shows the "improved" method just like the original and I want to see an example and know how it is improved or different from the original.
    We don't know what you are refering to by subroutines, there is an implication that you are coding this in Fortran but you do not say so.

    Also you cannot do this without stating the initial conditions.

    By the "improved Euler" method you are refering to the first order predictor corrector method also known as Heun's method.

    This tentativly steps forward using the Euler step:

    y_1(t+h)=y(t)+h\; y'(t,y)

    Then refines the derivative estimate to:

    y'_1=[y'(t,y)+y'(t,y_1(t+h)]/2

    and then the final estimate uses an Euler step using the refined derivative estimate:

     <br />
y(t+h)=y(t)+h\; y'_1<br />

    CB
    Follow Math Help Forum on Facebook and Google+

  3. #3
    MHF Contributor

    Joined
    Apr 2005
    Posts
    15,697
    Thanks
    1468
    So if the subroutine you are talking about the one that evaluates f(x,y), it may be that the only noticeable difference is that the routine is calling that subroutine twice.
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Member diddledabble's Avatar
    Joined
    Jul 2009
    Posts
    80

    Clarification

    It is not for Fortran it is just a simple pencil/paper exercise. I think the wording of subroutine is a little misleading but that is what my book says. Maybe just an example of how to use the improved Euler's method for the problem would be more appropriate.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Euler's Method
    Posted in the Differential Equations Forum
    Replies: 2
    Last Post: April 6th 2011, 03:27 PM
  2. Quick question about improved Euler's method
    Posted in the Differential Equations Forum
    Replies: 1
    Last Post: February 17th 2010, 11:47 AM
  3. Improved Euler's Method Help
    Posted in the Calculus Forum
    Replies: 1
    Last Post: November 8th 2009, 10:14 PM
  4. euler's method
    Posted in the Calculus Forum
    Replies: 1
    Last Post: April 22nd 2008, 02:37 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