• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

C 或 C 的 gamma 或 log gamma 函数

用户头像
it1352
帮助3

问题说明

我正在寻找 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.

谢谢!!!

正确答案

#1

如果您不能使用 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

这篇好文章是转载于:编程之路

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 编程之路
  • 本文地址: /reply/detail/tanhcakkeh
系列文章
更多 icon
同类精品
更多 icon
继续加载