id summary reporter owner description type status milestone component version severity resolution keywords cc 6151 Wrong output from boot::math, cdf(complement(laplace_distribuiton<>(...)) Yan Zhou Paul A. Bristow "To illustrate the bug, see the following code, {{{ #include #include int main () { boost::math::laplace lap(1, 1); std::cout << boost::math::cdf(lap, 1) << std::endl; std::cout << boost::math::cdf(boost::math::complement(lap, 1)) << std::endl; return 0; } }}} The output should be two numbers sum up to 1. Instead, it print 0.5 (this is correct) 0.0676676 (this is wrong) I have double read the boost::math documents, to make sure that I didn't misused the library. Hopefully I am not making a stupid mistake here. Otherwise, the bug looks so stupid to me that I still don't believe this is a bug in boost::math, instead I did something wrong here." Bugs closed Boost 1.49.0 math Boost 1.48.0 Problem fixed laplace distribution