【发布时间】:2026-01-03 22:15:01
【问题描述】:
我一直在查看 GSL 和 Boost 库以找到 dilogarithm function,但没有找到。
这个函数的 C++/C 是否有可用的实现?
【问题讨论】:
我一直在查看 GSL 和 Boost 库以找到 dilogarithm function,但没有找到。
这个函数的 C++/C 是否有可用的实现?
【问题讨论】:
GSL 好像有:https://www.gnu.org/software/gsl/manual/html_node/Dilogarithm.html
gsl_sf_dilog.h
double gsl_sf_dilog (double x)
int gsl_sf_dilog_e (double x, gsl_sf_result * result)
int gsl_sf_complex_dilog_e (double r, double theta, gsl_sf_result * result_re, gsl_sf_result * result_im)
【讨论】:
有一个实数和复数对数函数的 C++ 实现(在 GNU LGPL 下许可)在
https://github.com/Expander/dilogarithm
已从 ROOT 包和 SPheno (http://spheno.hepforge.org/) 中提取和翻译实现。
【讨论】: