Page 1 of 1

Last Homework

Posted: Thu Dec 03, 2015 11:26 am
by goodwine
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.

Re: Last Homework

Posted: Sun Dec 06, 2015 6:19 pm
by jmcgill1
Is it possible to do numbers 2 and 3 with MATLAB? Or would Fortran be preferred?

Re: Last Homework

Posted: Sun Dec 06, 2015 8:22 pm
by goodwine
jmcgill1 wrote:Is it possible to do numbers 2 and 3 with MATLAB? Or would Fortran be preferred?
A compiled language such as FORTRAN, C, C++, or go is required. I had announced this in class on Friday.

Re: Last Homework

Posted: Sun Dec 06, 2015 8:55 pm
by goodwine
Someone asked me
Can my equation for number 2 on the homework be dx/dt=cos(t) ? Or does that not depend on both x and t?
No, your

f(x,t) = cos(t)

which only depends on t.

Re: Last Homework

Posted: Mon Dec 07, 2015 11:34 am
by tbest
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?

Re: Last Homework

Posted: Mon Dec 07, 2015 11:58 am
by goodwine
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?
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.

Re: Last Homework

Posted: Mon Dec 07, 2015 8:59 pm
by colsen3
For number 2, do we make up our own initial conditions as well?

Re: Last Homework

Posted: Mon Dec 07, 2015 9:42 pm
by goodwine
colsen3 wrote:For number 2, do we make up our own initial conditions as well?
Yes

Re: Last Homework

Posted: Mon Dec 07, 2015 9:46 pm
by goodwine
Someone asked me wrote:I was wondering if we can use ode45 to find the exact solutions of the equations.
If you think you can trust it. The last problem shows pretty clearly that you can't always trust it.

Re: Last Homework

Posted: Thu Dec 10, 2015 12:20 am
by Jfox10
Would you like us to include our fortran code with the homework?

Re: Last Homework

Posted: Thu Dec 10, 2015 8:24 am
by goodwine
Jfox10 wrote:Would you like us to include our fortran code with the homework?
Yes, definitely.