Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Euler's Method question.

  1. Mar 24, 2006 #1

    que

    User Avatar

    I need some clarification please the question is:
    -Using Euler's method with h = .25 given dy/dx = ycosx ,y(0) = 1 on the interval 0 <= x =< pi/4.

    are the X's : pi/12, pi/6, pi/4 OR .25, .50, .75 ??

    some help please

    que.
     
  2. jcsd
  3. Mar 25, 2006 #2

    Integral

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    [tex] x_0=0 [/tex]
    [tex] x_1 = x_0 +h [/tex]
    [tex] x_3 = x_0 + 2*h [/tex]

    Continue until

    [tex] x_n > \frac { \pi } 4 [/tex]
     
  4. Mar 25, 2006 #3

    HallsofIvy

    User Avatar
    Science Advisor

    Start at 0 and go by steps of h:
    0, .25, .50, .75, 1, 1.25, 1.50.

    It's a bit peculiar to use an h that does not divide evenly into the length of the interval. Are you sure you have read the problem correctly?
     
  5. Mar 26, 2006 #4

    que

    User Avatar

    ok so what i get.
    (x0,y0) = (0,1)
    X1 = .25
    Y1 = 1 + .25(1*cos(0)) = 1.25
    i do this until x3,y3 where x3 = .75, and y3 = 1.8935
    do i stop there since doing one more step will be > pi/4?

    thanx.
     
  6. Mar 26, 2006 #5

    que

    User Avatar

    yes HallsofIvy i read the problem correctly that why i was confused since all the book problems use an h that is divide evenly into the length of the intervals.
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook




Loading...
Similar Threads for Euler's Method question Date
B Euler's method for second order DE Oct 4, 2016
Help with implicit euler method May 27, 2014
Midpoint Euler method, second order system Jun 12, 2013
Euler method question Jul 6, 2012