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: strange behaviour with gsl_cdf_fdist_Q()


On Wed, 2003-09-03 at 16:50, Rajarshi Guha wrote:
> On Wed, 2003-09-03 at 13:04, Rajarshi Guha wrote:
> > Hi,
> >   more problems with gsl_cdf_fdist_Q() and very strange ones at that!
> 
> I've been investigating this problem a little more. 
> 
> I took the code from fdist.c and beta_inc.c and basically renamed the
> functions and compiled the code directly into my binary. Now running my
> program gives different values of P inside the function and absurd
> values of the return value after it has returned from the function!
> 
> With the original gsl_* function from the GSL libs:
> 
> x = 3.145724 nu1 = 7.666667 nu2 = 3.000000 P = 0.044555
> return value = 32.0000
> 
> When I call the renamed funtion in my binary I get
> 
> x = 3.145724 nu1 = 7.666667 nu2 = 3.000000 P = 0.000981
> return value = 521874777.0000

Sorry for the typo's: nu1 and nu2 are 3 and 23 respectively

-------------------------------------------------------------------
Rajarshi Guha <rajarshi@presidency.com> <http://jijo.cjb.net>
GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE
-------------------------------------------------------------------
Alcohol, an alternative to your self
- 'Alcohol' by the Bare Naked Ladies


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