forum.alglib.net

ALGLIB forum
It is currently Mon Jul 04, 2022 4:14 pm

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Problem when calling gamma function from gammafunc.cpp
PostPosted: Tue Aug 03, 2010 2:09 pm 
Offline

Joined: Tue Aug 03, 2010 1:53 pm
Posts: 4
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


Top
 Profile  
 
 Post subject: Re: Problem when calling gamma function from gammafunc.cpp
PostPosted: Tue Aug 03, 2010 4:20 pm 
Offline

Joined: Tue Aug 03, 2010 1:53 pm
Posts: 4
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


Top
 Profile  
 
 Post subject: Re: Problem when calling gamma function from gammafunc.cpp
PostPosted: Tue Aug 03, 2010 9:29 pm 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 874
I can send development version of new release to your e-mail. Do you need invincompletebeta() only?


Top
 Profile  
 
 Post subject: Re: Problem when calling gamma function from gammafunc.cpp
PostPosted: Tue Aug 03, 2010 9:58 pm 
Offline

Joined: Tue Aug 03, 2010 1:53 pm
Posts: 4
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,


Top
 Profile  
 
 Post subject: Re: Problem when calling gamma function from gammafunc.cpp
PostPosted: Wed Aug 04, 2010 9:32 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 874
I've sent development version to your e-mail.


Top
 Profile  
 
 Post subject: Re: Problem when calling gamma function from gammafunc.cpp
PostPosted: Wed Aug 04, 2010 12:09 pm 
Offline

Joined: Tue Aug 03, 2010 1:53 pm
Posts: 4
Sergey.Bochkanov wrote:
I've sent development version to your e-mail.


Thank you very much Bochkanov =)

Regards,

C?cero Neves


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group