I am looking for a version of the gamma-gamma-gamma and logarithm functions of C or C ++.
Are any code snippets or libraries recommended?
If possible, I want to know the implementation principle.
Thanks!!!
If you can't use C ++ 11: GNU GSL has all the Gamma features you will need: http://www.gnu.org/software/gsl/manual/html_node/Gamma-Functions.html#index-gsl_005fsf_005flngamma-583 p>
Or you can take a look at the special math enhancement features: http://www.boost.org/doc/libs/1_53_0/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/lgamma.html
In C ++ 11, you can use std :: lgamma for the gamma log and tgamma for gamma.
You can try to take a look at Numericical Recipes In C , it should contain the features you need.