我不明白digamma function of boost如何在程序中使用。任何例子,赞赏。我包括提高如何在boost中使用digamma函数
#include <boost/math/special_functions/digamma.hpp>
但函数调用digamma(x)
,其中x是一个double
提供了以下错误:
error: there are no arguments to ‘digamma’ that depend on a template parameter, so a declaration of ‘digamma’ must be available [-fpermissive]
你有什么不明白的?您只需插入一个值并获取记录的结果,并不容易。 –
更具体地说,如果该功能不知何故不适合你,请出示你的[mcve],这样我们就可以看到你在做什么错误/你没有正确理解。 –
刚刚编辑了这个问题。 – user3639557