我一直在寻找GSL和Boost库找到dilogarithm function,但我还没有找到它。
这个函数的C ++ / C是否有可用的实现?
答案 0 :(得分:3)
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)
答案 1 :(得分:1)
有一个C ++实现的真实和复杂的dilogarithm函数(在GNU LGPL下许可),可在
获得。https://github.com/Expander/dilogarithm
已经从ROOT包和SPheno(http://spheno.hepforge.org/)中提取和翻译了实现。