The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: ode45
Replies: 2   Last Post: Mar 27, 2014 3:44 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
David Stevens

Posts: 10
Registered: 3/26/14
Re: ode45
Posted: Mar 26, 2014 6:06 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Did you mean:
dydt(1) = (Qao_current/c) - (y(1)/(Rp*c));
dydt(2) = (0/c) - (y(2)/(Rp*c));
rather than:
dydt(1) = (Qao_current/c) - (y(1)/(Rp*c));
dydt(1) = (0/c) - (y(2)/(Rp*c));

You are setting dydt(1) twice.

You could also get rid of the 0/c if time is at all an issue as it is equal to 0. It does show the similarity between the two equations though so it is good for clarity.

Date Subject Author
Read ode45
Read Re: ode45
David Stevens
Read Re: ode45

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.