[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: [Help-gsl] ode equation definition

**From**: |
Gary Paterson |

**Subject**: |
Re: [Help-gsl] ode equation definition |

**Date**: |
Fri, 19 Dec 2008 11:09:40 +0000 |

Hi Frank,
Thanks for replying. I think I've found and fixed the error.
Cheers,
Gary
Hi,
could you post your code here? Without the source, it's hard to tell what went
wrong.
Cheers
Frank
On Tuesday 16 December 2008 15:58:20 Gary Paterson wrote:
>* I'm trying to use the gsl to solve an ode which I can't define simply.*
>* My aim is to define the ode by calling inside the int (* function)*
>* (double t, const double y[], double dydt[], void * params) function*
>* other functions. These functions will need to take in as parameters t,*
>* and y(t).*
>
>* I've tried doing this by inside the int (* function) (double t, ...*
>* function converting y[0] into a double and passing the resulting value*
>* and the value for t to the other functions. My attempt must be wrong*
>* however as the result for the conversion of y[0] is nan on all but the*
>* first call to int (* function) (double t, ... .*