Boost C++ Libraries: Ticket #7818: Docs incorrect for Complement of CDF in boost::math https://svn.boost.org/trac10/ticket/7818 <p> <a href="http://www.boost.org/doc/libs/1_52_0/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/nmp.html#math_toolkit.dist.dist_ref.nmp._anchor_id__math_dist_ccdf___complement_of_the_cumulative_distribution_function">http://www.boost.org/doc/libs/1_52_0/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/nmp.html#math_toolkit.dist.dist_ref.nmp._anchor_id__math_dist_ccdf___complement_of_the_cumulative_distribution_function</a> </p> <p> The example code is: std::cout &lt;&lt; cdf(complement(norm, 2.0)) &lt;&lt; std::endl; </p> <p> I believe it should read cdf(complement(norm), 2.0) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7818 Trac 1.4.3 John Maddock Thu, 17 Jan 2013 13:29:05 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7818#comment:1 https://svn.boost.org/trac10/ticket/7818#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> No that's correct - complement() should wrap all the arguments not just the distribution. </p> Ticket