Search All of the Math Forum:

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

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

 Messages: [ Previous | Next ]
 Alex Posts: 6 Registered: 6/19/13
solving via runge-kutta fourth order equation
Posted: Jun 19, 2013 9:53 AM

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.

Date Subject Author
6/19/13 Alex
6/19/13 Steven Lord
6/19/13 Alex
6/19/13 Alex
6/19/13 Alex
6/20/13 Torsten
6/20/13 Alex