| New Reply |
Euler's Method |
Share Thread | Thread Tools |
| Jun8-12, 10:59 PM | #1 |
|
|
Euler's Method
1. The problem statement, all variables and given/known data
I have some trouble understanding the following solved problem: ![]() This is the solutions they have given us: [itex]E(32 \ steps) = 0.00097030[/itex] [itex]E(64 \ steps) = 0.00003202[/itex] 32 steps has h=0.625 64 steps has h= 0.03125 The formula for effective order at stepsize h is [itex]q= \frac{\ln |E(2h)|- \ln |E(h)|}{\ln 2}[/itex] [itex]\therefore q (0.03125)= \frac{\ln |E(0.625)|- \ln |E(0.03125)|}{\ln 2} \approx 4.92[/itex] 3. The attempt at a solution So I don't understand how they figured out that 32 steps has a step size of 0.625? What is the relationship between the stepsize and number of steps? ![]() I used to think that step size and the number of steps were related like this: [itex]h = \frac{1}{step \ size}[/itex] But using this, for 32 steps I get a step size of h=1/32=0.03125, and for 64 steps I get h=1/64=0.0156. The only way I can get the correct answer is to multiply the denominator by 2, but why should I do that? So, what's the problem with what I'm doing? Is my method wrong, or is that a typo in the given answers? |
| Jun8-12, 11:04 PM | #2 |
|
|
The problem states that y(1) = -1, and the solutions are at t=3.
The step size would be the change in t divided by the number of steps. |
| Jun9-12, 05:19 PM | #3 |
|
|
2/32=0.0625 2/64=0.03125 How come for 32 steps I got a different answer? |
| Jun9-12, 05:35 PM | #4 |
|
|
Euler's Method
I'm not sure. It's weird that the number they gave is off by a factor of 10, but the one for 64 is correct. Is it possible it's a typo?
|
| Jun9-12, 05:42 PM | #5 |
|
|
Yes. But are you sure in order to find the step size from the number of steps we have to divide the change in t by the number of steps? If that's the correct method then I think that may be a typo.
|
| Jun9-12, 05:48 PM | #6 |
|
|
Yes, Villyer is correct, and that's a typo.
|
| Jun9-12, 06:06 PM | #7 |
|
|
Okay thank you very much for the confirmation. And thanks a lot Villyer!!
|
| New Reply |
| Thread Tools | |
Similar Threads for: Euler's Method
|
||||
| Thread | Forum | Replies | ||
| Integrating Euler's equations for rigid body dynamics with Euler's Method | Differential Equations | 0 | ||
| Euler's method | Calculus & Beyond Homework | 2 | ||
| Euler methond and the improved Euler method | Differential Equations | 4 | ||
| Differential equations, euler's method and bisection method | Calculus & Beyond Homework | 3 | ||
| Euler's Method | General Math | 2 | ||