Last Homework

 Site Admin
 Posts: 1596
 Joined: Tue Aug 24, 2004 4:54 pm
 Location: 376 Fitzpatrick
 Contact:
Last Homework
Get it here
By "exact" I don't mean an exact differential equation, but rather one you can find a solution for in terms of elementary functions.
By "exact" I don't mean an exact differential equation, but rather one you can find a solution for in terms of elementary functions.
Bill Goodwine, 376 Fitzpatrick
Re: Last Homework
Is it possible to do numbers 2 and 3 with MATLAB? Or would Fortran be preferred?

 Site Admin
 Posts: 1596
 Joined: Tue Aug 24, 2004 4:54 pm
 Location: 376 Fitzpatrick
 Contact:
Re: Last Homework
A compiled language such as FORTRAN, C, C++, or go is required. I had announced this in class on Friday.jmcgill1 wrote:Is it possible to do numbers 2 and 3 with MATLAB? Or would Fortran be preferred?
Bill Goodwine, 376 Fitzpatrick

 Site Admin
 Posts: 1596
 Joined: Tue Aug 24, 2004 4:54 pm
 Location: 376 Fitzpatrick
 Contact:
Re: Last Homework
Someone asked me
f(x,t) = cos(t)
which only depends on t.
No, yourCan my equation for number 2 on the homework be dx/dt=cos(t) ? Or does that not depend on both x and t?
f(x,t) = cos(t)
which only depends on t.
Bill Goodwine, 376 Fitzpatrick
Re: Last Homework
When it says "plot the error versus different time steps" in problems 2 and 4, does that mean a plot of error at a certain value of t vs. deltaT, or error vs t with curves for different deltaT values like we did in class today?

 Site Admin
 Posts: 1596
 Joined: Tue Aug 24, 2004 4:54 pm
 Location: 376 Fitzpatrick
 Contact:
Re: Last Homework
Thanks. It should be more precise: "Plot the error versus time for different delta t." So curves of error vs t, and different curves for different dt.tbest wrote:When it says "plot the error versus different time steps" in problems 2 and 4, does that mean a plot of error at a certain value of t vs. deltaT, or error vs t with curves for different deltaT values like we did in class today?
Bill Goodwine, 376 Fitzpatrick

 Site Admin
 Posts: 1596
 Joined: Tue Aug 24, 2004 4:54 pm
 Location: 376 Fitzpatrick
 Contact:
Re: Last Homework
Yescolsen3 wrote:For number 2, do we make up our own initial conditions as well?
Bill Goodwine, 376 Fitzpatrick

 Site Admin
 Posts: 1596
 Joined: Tue Aug 24, 2004 4:54 pm
 Location: 376 Fitzpatrick
 Contact:
Re: Last Homework
If you think you can trust it. The last problem shows pretty clearly that you can't always trust it.Someone asked me wrote:I was wondering if we can use ode45 to find the exact solutions of the equations.
Bill Goodwine, 376 Fitzpatrick

 Site Admin
 Posts: 1596
 Joined: Tue Aug 24, 2004 4:54 pm
 Location: 376 Fitzpatrick
 Contact:
Re: Last Homework
Yes, definitely.Jfox10 wrote:Would you like us to include our fortran code with the homework?
Bill Goodwine, 376 Fitzpatrick