Re: MATH 128a HELP

7 views
Skip to first unread message

Soroosh Yazdani

unread,
Dec 6, 2006, 1:54:46 AM12/6/06
to dcas...@berkeley.edu, math128a...@groups.l.google.com
What step sizes are you using? What method are you using?
For me to get the program to work I used Runge-Kutta with step size 0.01.
If you are using larger step size, then you are probably not going to
converge to an answer. If you are using a more naive method, like Forward
Euler, then your step size should be significantly smaller (I'm not sure
if Forward Euler will work).

Soroosh
On Tue, Dec 05, 2006 at 10:35:27PM -0800, dcas...@berkeley.edu wrote:
> Hello Soroosh,
>
> I have a problem. Number 2 on the programming assignemnt causes my
> program to break, becasue it gets large numbers, causeing some illegal
> math with infinities causing NaN.
>
> I did a bunch of the math with a calculator and I don't think that my math
> is incorrect and I also used the program to solve a problem I had the
> answers for and it worked for that. What should I do...
>
> Danielle

Reply all
Reply to author
Forward
0 new messages