This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ODE's again (sorry)


ok (sorry about all these posts),

about the runge-kutta...

it wouldnt be that the so called 'initial value of dy/dt' (first appearance 
of y[1] in main() in the example of chapter 25) is in actual fact the value 
dy/dt at (t +/- 0.25*tstep) and NOT at the initial 't'?... this would solve 
why im getting the discontinuity. and if this is so... is there any way i 
can pass dy/dt at 't'? and also, should this not be how the function should 
be called?

i have comfirmed by the euler method that the calculation when solving for a 
large range is correct. although there is always a discrepency in the second 
calculated dy/dx value when solving just one predicted 'y' value and 
reinserting values back into the call. is there no way to call rk4 to just 
solve the next value, then reinsert.. without this discrepency?

cheers,
Sam
---
ignore the tripe that follows:

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]