Boost C++ Libraries: Ticket #6069: binomial_distribution seems to throw when it shouldn't https://svn.boost.org/trac10/ticket/6069 <p> The following raises an exception, but from the documentation it appears that it should be a valid call: </p> <blockquote> <p> quantile(binomial_distribution&lt;double&gt;(10, 1), 1.0f - (0.0001f))); </p> </blockquote> <p> The exception says: </p> <blockquote> <p> Error in function boost::math::cdf(binomial_distribution&lt;d&gt; const&amp;, d): Number of Successes argument is -nan, but must be &gt;= 0 ! </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6069 Trac 1.4.3 John Maddock Sat, 29 Oct 2011 17:26:29 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6069#comment:1 https://svn.boost.org/trac10/ticket/6069#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">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/75168" title="Allow precision.hpp to work with number types in base 10. Fix ...">[75168]</a>) Allow precision.hpp to work with number types in base 10. Fix binomial_distribution quantile when success_fraction is 1. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6069" title="#6069: Bugs: binomial_distribution seems to throw when it shouldn't (closed: fixed)">#6069</a>. </p> Ticket Jordan DeLong <delong.j@…> Sat, 29 Oct 2011 19:11:09 GMT <link>https://svn.boost.org/trac10/ticket/6069#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6069#comment:2</guid> <description> <p> Thanks! :) </p> </description> <category>Ticket</category> </item> </channel> </rss>