My guess is that once you get the nan it propagates through the code. Have you tried debugging it? Using eclipse under ubuntu I couldn't see through all the variables.
Cheers, Juan On Jun 9, 2012 10:36 PM, "Ruchin Kansal" <[email protected]> wrote: > Thanks, > But i just dont understand why it comes nan. I expect slope as infinity > and rest output as some finite real numbers. Am i missing something? Is it > a wrong expectation? > > > Sent from Yahoo! Mail on Android > > ------------------------------ > * From: * Sam Mason <[email protected]>; > * To: * Ruchin Kansal <[email protected]>; > * Cc: * [email protected] <[email protected]>; [email protected] < > [email protected]>; [email protected] <[email protected]>; > * Subject: * Re: [Help-gsl] Doubt (bug?) in gsl_fit_linear function > * Sent: * Sat, Jun 9, 2012 7:52:50 PM > > On 9 June 2012 20:34, Ruchin Kansal <[email protected]> wrote: > > Yes, it shd be infinity. But at my end everything is printed as nan. > Could you please post your outut in case it is different? > > As a single data point; Juan's code prints out NaN with GSL 1.15 > (installed through macports). > > If you want any more details, let me know. > > Sam > >
