Click here to Skip to main content
15,902,112 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Help with unmananged dlls Pin
David Crow18-Oct-06 10:17
David Crow18-Oct-06 10:17 
GeneralRe: Help with unmananged dlls Pin
eggie518-Oct-06 10:40
eggie518-Oct-06 10:40 
GeneralRe: Help with unmananged dlls Pin
David Crow19-Oct-06 4:30
David Crow19-Oct-06 4:30 
GeneralRe: Help with unmananged dlls Pin
eggie519-Oct-06 9:22
eggie519-Oct-06 9:22 
AnswerRe: Help with unmananged dlls Pin
Michael Dunn18-Oct-06 15:47
sitebuilderMichael Dunn18-Oct-06 15:47 
GeneralRe: Help with unmananged dlls Pin
eggie518-Oct-06 15:57
eggie518-Oct-06 15:57 
GeneralRe: Help with unmananged dlls Pin
eggie518-Oct-06 16:01
eggie518-Oct-06 16:01 
Question4TH ORDER RUNGE-KUTTA ALGORITHM Pin
sahoong18-Oct-06 8:53
sahoong18-Oct-06 8:53 
Million thanks for your mail. I need an advice on how to write C++ codes for Runge-Kutta algorithm to colve four first-order ODE. I am able to write Runge-Kutta code to solve just only one Differential equation but i'm haing problem with 4 at a time.

The equations are

dQ1/dt = w1

dw1/dt = (tau1 - 2*m2(r2*r2/4 -h2*h2/3 -d*d) * om1*om2*sintetha2*costetha2 - m2*g*d*costetha1*costetha2)/
om1*(m1(ra*ra + rb*rb)/4 + m1(h1*h1)/3 + m2((r2*r2)(1+sinsqtetha2)/4 + m2*h2*h2*cossqtetha2/3 + m2*d*d*cossqtetha2);
}



dQ2/dt = w2

dw2/dt = (tau2 + (m2(r2*r2/4 -h2*h2/3 -d*d)*om1*om1*sintetha2*costetha2) - m2*g*d*sintetha1*sintetha2)/
om2*m2(r2*r2/4 + h2*h2/3 + d*d)


The following are constants
#define n (int) 2
#define m1 (float) 0.05
#define m2 (float) 0.03
#define r1 (float) 0.04
#define r2 (float) 0.06
#define ra (float) 0.04
#define rb (float) 0.06
#define l (float) 0.05
#define d (float) 0.02
#define acc_due_gravity (float) 9.81
#define h (double) 0.01;


Thanks for your help.

Regards,
SKG!

skg
AnswerRe: 4TH ORDER RUNGE-KUTTA ALGORITHM Pin
David Crow18-Oct-06 9:10
David Crow18-Oct-06 9:10 
AnswerRe: 4TH ORDER RUNGE-KUTTA ALGORITHM Pin
Christian Graus18-Oct-06 12:21
protectorChristian Graus18-Oct-06 12:21 
GeneralRe: 4TH ORDER RUNGE-KUTTA ALGORITHM Pin
sahoong19-Oct-06 5:50
sahoong19-Oct-06 5:50 
AnswerRe: 4TH ORDER RUNGE-KUTTA ALGORITHM Pin
JWood18-Oct-06 15:08
JWood18-Oct-06 15:08 
QuestionHandling exception Pin
Demian Panello18-Oct-06 5:59
Demian Panello18-Oct-06 5:59 
AnswerRe: Handling exception Pin
Zac Howland18-Oct-06 6:26
Zac Howland18-Oct-06 6:26 
GeneralRe: Handling exception Pin
Demian Panello18-Oct-06 7:11
Demian Panello18-Oct-06 7:11 
QuestionFOURTH-ORDER RUNGE-KUTTA ALGORITHM Pin
sahoong18-Oct-06 5:57
sahoong18-Oct-06 5:57 
AnswerRe: FOURTH-ORDER RUNGE-KUTTA ALGORITHM Pin
Mark Salsbery18-Oct-06 6:46
Mark Salsbery18-Oct-06 6:46 
AnswerRe: FOURTH-ORDER RUNGE-KUTTA ALGORITHM Pin
David Crow18-Oct-06 8:07
David Crow18-Oct-06 8:07 
AnswerRe: FOURTH-ORDER RUNGE-KUTTA ALGORITHM Pin
Chris Losinger18-Oct-06 8:18
professionalChris Losinger18-Oct-06 8:18 
GeneralRe: FOURTH-ORDER RUNGE-KUTTA ALGORITHM Pin
Jörgen Sigvardsson18-Oct-06 11:32
Jörgen Sigvardsson18-Oct-06 11:32 
Questiontcp receive Pin
Archyami18-Oct-06 5:22
Archyami18-Oct-06 5:22 
AnswerRe: tcp receive Pin
Mark Salsbery18-Oct-06 5:28
Mark Salsbery18-Oct-06 5:28 
GeneralRe: tcp receive Pin
Archyami18-Oct-06 6:58
Archyami18-Oct-06 6:58 
GeneralRe: tcp receive Pin
Mark Salsbery18-Oct-06 7:02
Mark Salsbery18-Oct-06 7:02 
GeneralRe: tcp receive Pin
Archyami18-Oct-06 7:14
Archyami18-Oct-06 7:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.