11 Jun
2008
11 Jun
'08
1:55 a.m.
AMDG Sakaie, Ken wrote:
I did the following 'hello-world'-level test of the factorial function and get the following error.
cat test.cpp
#include "boost/math/special_functions/factorials.hpp" int main() { unsigned int i = 6; printf("%d\n", boost::math::factorial(i)); }
Here's one way: #include "boost/math/special_functions/factorials.hpp" int main() { unsigned int i = 6; printf("%d\n", static_cast<unsigned>(boost::math::factorial<double>(i))); } In Christ, Steven Watanabe