Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

TGAMMA approximation method.

Bernard
重要分销商 I
1,113 次查看
Hi!
Isthis possible to discuss on this forum the approximation method of VML Tgamma function?
I'am interested in what an approximation method is used to calculate TGamma values.
0 项奖励
2 回复数
Sergey_M_Intel2
1,113 次查看
Hello Iliya,

We do not disclose algorithmic details of math library functions implemented in our products.

Widely known approximations of gamma functions are Stirling's and Lanczos's ones. Good overview of the function along with its approximations can be found here http://mathworld.wolfram.com/GammaFunction.html. You might also want to look at numerical analysis classic book by Abramowitz and Stegun "Handbook of Mathematical Functions".

I hope that helps,
Regards,
Sergey
0 项奖励
Bernard
重要分销商 I
1,113 次查看

Widely known approximations of gamma functions are Stirling's and Lanczos's ones


Thank you Sergey for your answer.

I have already implemented gamma function with the help of stirling approximation.Code and run-time tests can be found here http://software.intel.com/en-us/forums/showthread.php?t=106032
I had a problem with an accuracy in the range [0.001,1.0] and was curious how it was solved by Intel programmers(my problem was solved with the help of minimax approximation in problematic range).

I have a Stegun and Avramovitz classic book which serves me well as source ofvariousformulas for my mathematical library.

I do understand that such a discussion will not be possible here.
0 项奖励
回复