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: 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 ]
Alex

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:

dataQ=data(:,1);
dataP=data(:,2);

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

thanks a lot!!!

al.



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

[Privacy Policy] [Terms of Use]

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