[boost::math]binomial_coefficient compile error
Hi
this code gives a compile error.
#include <iostream>
#include
Hi
this code gives a compile error.
#include <iostream>
#include
what is that I am missing?
An evaluation type - the function is a template that returns a real-value, *not* an integer (that's too prone to error and overflow), so for example: boost::math::binomial_coefficient<double>(10, 1) would do the trick and return the result as a double. HTH, John.
participants (2)
-
John Maddock
-
Suresh Kumar