Euler's method

  • Thread starter squenshl
  • Start date
  • #1
479
4

Homework Statement


Consider the initial value problem y' = f(t,y), y(t0) = y0
where f: R x R [tex]\rightarrow[/tex] R. An approximate solution to the problem can be found using Euler's method. This generates the approximation yi to f(ti) at ti = t0 + ih, i = 1,2,..., using the formula yi = yi-1 + hf(ti-1,yi-1). Implement Euler's method and then show that your implementation is correct.

Homework Equations


Eulers method equation.


The Attempt at a Solution


I am not sure exactly what it is asking. Is it asking for a numerical example or what?
 

Answers and Replies

  • #2
LCKurtz
Science Advisor
Homework Helper
Insights Author
Gold Member
9,555
766
If this is from a class, ask your teacher what it intended. As the problem is worded I might try something like

y' = x - y, y(0) = 1

and solve it with Euler's method and compare it with the actual solution. But I would ask.
 

Related Threads on Euler's method

  • Last Post
Replies
5
Views
1K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
2
Views
3K
  • Last Post
Replies
6
Views
2K
  • Last Post
Replies
4
Views
2K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
5
Views
1K
  • Last Post
Replies
3
Views
966
Top