C 或 C 中的 gamma 或 log gamma 函数 [英] gamma or log gamma function in C or C

查看:80
本文介绍了C 或 C 中的 gamma 或 log gamma 函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找 C 或 C++ 版本的伽马和对数伽马函数.

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.

谢谢!!!

推荐答案

如果您不能使用 C++11:GNU GSL 拥有您需要的所有 Gamma 函数:http://www.gnu.org/software/gsl/manual/html_node/Gamma-Functions.html#index-gsl_005fsf_005flngamma-583

If you can't use C++11: The GNU GSL has all Gamma function you would ever need: http://www.gnu.org/software/gsl/manual/html_node/Gamma-Functions.html#index-gsl_005fsf_005flngamma-583

或者你可以看看boost的数学特殊函数:http:///www.boost.org/doc/libs/1_53_0/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/lgamma.html

Or you can have a look at boost's math special functions: http://www.boost.org/doc/libs/1_53_0/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/lgamma.html

这篇关于C 或 C 中的 gamma 或 log gamma 函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆