Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Code to solve 2nd order ODE works fine for every problem but one.
What's wrong?

Replies: 2   Last Post: May 14, 2011 9:08 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Stephen L.

Posts: 23
Registered: 12/11/04
Re: Code to solve 2nd order ODE works fine for every problem but
one. What's wrong?

Posted: May 14, 2011 9:08 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


On 5/12/2011 7:08 PM, Nasser M. Abbasi wrote:

>
> May be because at t=0 you get 1/0 all over the place, hence Inf,
> and this messes up your dy(2) and its carries over to dy(1) next
> time. big mess.
>
> Try to start the computation from 0.001 or such.
>
> --Nasser
>
>



That was it! Thanks!



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2013. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.