- Write a program that uses Euler's method with a time step of dt=0.1 to determine an approximate numerical solution to
- Write a computer program that uses 4th order Runge-Kutta to determine an approximate numerical solution to
Repeat the problem with - Write a computer program using 4th order Runge-Kutta to determine an approximate numerical solution to
- Write a computer program using 4th order Runge-Kutta to determine an approximate numerical solution to
Homework 8, due November 13, 2009.
-
- Site Admin
- Posts: 1596
- Joined: Tue Aug 24, 2004 4:54 pm
- Location: 376 Fitzpatrick
- Contact:
Homework 8, due November 13, 2009.
For each of the problems below, write a computer program in FORTRAN, C or C++ that determines an approximate numerical solution using the indicated method. Submit a plot of the solution(s) as well as a printout of your computer code. If two or more programs are nearly identical, it is permissible to submit one program and simply write on the code printout what the difference would be for another problem.
Bill Goodwine, 376 Fitzpatrick
Re: Homework 8, due November 13, 2009.
what time step should we be using for problem 2? when I try plotting in MATLAB, there are very drastic changes in my plot when i go from dt=0.01 to dt=0.001, or 0.001 to 0.0001, etc.
-
- Site Admin
- Posts: 1596
- Joined: Tue Aug 24, 2004 4:54 pm
- Location: 376 Fitzpatrick
- Contact:
Re: Homework 8, due November 13, 2009.
I would decrease the time step until it takes too long to run or it seems to converge to a solution. This system is chaotic, so small changes can have large effects, but it should converge at some point.mpetraglia wrote:what time step should we be using for problem 2? when I try plotting in MATLAB, there are very drastic changes in my plot when i go from dt=0.01 to dt=0.001, or 0.001 to 0.0001, etc.
Bill Goodwine, 376 Fitzpatrick
Re: Homework 8, due November 13, 2009.
How do you graph in 3-D in matlab? In addition, I added a u in addition to v and w, but I was still unable to load the data.d file.
-
- Site Admin
- Posts: 1596
- Joined: Tue Aug 24, 2004 4:54 pm
- Location: 376 Fitzpatrick
- Contact:
Re: Homework 8, due November 13, 2009.
I think that at this point in your career you can find the answer to plotting in 3-D in matlab.jdeoreo wrote:How do you graph in 3-D in matlab? In addition, I added a u in addition to v and w, but I was still unable to load the data.d file.
Using a u,v and w is correct, but without more information I can't really help you.
Bill Goodwine, 376 Fitzpatrick