forum.alglib.net
http://forum.alglib.net/

Problem when calling gamma function from gammafunc.cpp
http://forum.alglib.net/viewtopic.php?f=2&t=48
Page 1 of 1

Author:  cicero [ Tue Aug 03, 2010 2:09 pm ]
Post subject:  Problem when calling gamma function from gammafunc.cpp

Hi folks,

I have a problem when compiling a library that uses the alglib to do some calculations. I have implemented a function to calculate the inverse of Student's cumulative distribution (that I will call tinv). To do so I'm using the invincompletebeta function, which makes use of the gamma function implemented in the gammafunc.cpp file.

The problem arises when I call the tinv function and the gamma function from matchalls.h is called (which actually is the natural logarithm of the gamma function) instead of the alglib gamma function. Thus, I end up with some wrong results in my calculations.

I would like to know if somebody knows why this is happening and how I could solve this without having to change the alglib source-code.

Thanks in advance,

C?cero Neves

Author:  cicero [ Tue Aug 03, 2010 4:20 pm ]
Post subject:  Re: Problem when calling gamma function from gammafunc.cpp

Hi,

I saw in the bug track tool that this problem was already detected and solved under the ID 0000360 . My doubt now is: Is there some way I can find this fixed release or I will have to wait until the next oficial release of the lib?

Regards,

C?cero Neves

Author:  Sergey.Bochkanov [ Tue Aug 03, 2010 9:29 pm ]
Post subject:  Re: Problem when calling gamma function from gammafunc.cpp

I can send development version of new release to your e-mail. Do you need invincompletebeta() only?

Author:  cicero [ Tue Aug 03, 2010 9:58 pm ]
Post subject:  Re: Problem when calling gamma function from gammafunc.cpp

Sergey.Bochkanov wrote:
I can send development version of new release to your e-mail. Do you need invincompletebeta() only?


Hello Bochkanov,

Currently I am explicitily calling only the invincompletebeta and the kmeansgenerate function. I don't know for sure but I think that only the invincompletebeta will be enough.

Best regards,

Author:  Sergey.Bochkanov [ Wed Aug 04, 2010 9:32 am ]
Post subject:  Re: Problem when calling gamma function from gammafunc.cpp

I've sent development version to your e-mail.

Author:  cicero [ Wed Aug 04, 2010 12:09 pm ]
Post subject:  Re: Problem when calling gamma function from gammafunc.cpp

Sergey.Bochkanov wrote:
I've sent development version to your e-mail.


Thank you very much Bochkanov =)

Regards,

C?cero Neves

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/