Boost C++ Libraries: Ticket #6805: Infinite loop in do_inverse_discrete_quantile(...) https://svn.boost.org/trac10/ticket/6805 <pre class="wiki">#include &lt;boost/math/distributions/binomial.hpp&gt; using boost::math::binomial_distribution; using boost::math::policies::policy; using boost::math::policies::discrete_quantile; binomial_distribution&lt;double, policy&lt;discrete_quantile&lt;boost::math::policies::integer_round_up&gt; &gt; &gt; distribution(100, 1e-10); quantile(distribution, 0.99999999); </pre><p> This goes into boost\math\distributions\detail\inv_discrete_quantile.hpp's do_inverse_discrete_quantile with guess &lt; 10 and never comes back. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6805 Trac 1.4.3 John Maddock Fri, 20 Apr 2012 10:19:42 GMT <link>https://svn.boost.org/trac10/ticket/6805#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6805#comment:1</guid> <description> <p> Investigating... </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Fri, 20 Apr 2012 10:51:57 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6805#comment:2 https://svn.boost.org/trac10/ticket/6805#comment:2 <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">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/78090" title="Add checks to discrete quantile finder to handle cases where there is ...">[78090]</a>) Add checks to discrete quantile finder to handle cases where there is no true answer. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6805" title="#6805: Bugs: Infinite loop in do_inverse_discrete_quantile(...) (closed: fixed)">#6805</a>. </p> Ticket