Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gamma or log gamma function in C or C [closed]

I am seeking a C or C++ version of gamma and log gamma functions.

Are there any code pieces or libraries recommended?

If possible, I want to know the principle of the implementations.

Thank you!!!

like image 218
kimi Avatar asked Dec 11 '22 16:12

kimi


1 Answers

In c++11, you can use std::lgamma for log gamma, and tgamma for gamma.

like image 97
BЈовић Avatar answered Jan 06 '23 19:01

BЈовић