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: solving via runge-kutta fourth order equation
Replies: 6   Last Post: Jun 20, 2013 9:38 AM

Advanced Search

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

Posts: 6
Registered: 6/19/13
solving via runge-kutta fourth order equation
Posted: Jun 19, 2013 9:53 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi there,

I am quite new to matlab and have one question regarding solving odf using Runge-kutta fourth order.

I solved it in excel, however looking forward to implement it into matlab for better performance.

so i have to solve this equation :

d(ln(Q))/dt=g(Q)*(P/Q-1) ;

by solving via runge-kutta it should looks like this:

ln(Q) in step n+1= ln(Q) at step n + 1/6*h*(s1+2s2+ss3+s4) ;

where Q, and P are know values let say:


and ln(g(Q))= c1+c2*ln(Q)+c3*ln(q)^2; with c1,c2,c3 being known parameteres values.

thanks a lot!!!


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.