Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost::math]binomial_coefficient compile error
From: John Maddock (boost.regex_at_[hidden])
Date: 2010-10-07 03:30:12


>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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net