Boost C++ Libraries: Ticket #6939: pdf(weibull(shape, scale), 0) == 0 even if shape <= 1 https://svn.boost.org/trac10/ticket/6939 <p> If shape == 1, then we should have <code>pdf(weibull(shape, scale), 0) == 1</code> and if shape &lt; 1, <code>cdf(weibull(shape, scale), 0)</code> should call <code>raise_overflow_error</code>. </p> <p> Example: </p> <pre class="wiki">#include &lt;boost/math/distributions/weibull.hpp&gt; using namespace boost::math; int main() { std::cout &lt;&lt; pdf(weibull(0.5), 0) &lt;&lt; std::endl &lt;&lt; pdf(weibull(1), 0) &lt;&lt; std::endl; } </pre><p> This prints: </p> <pre class="wiki">0 0 </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6939 Trac 1.4.3 John Maddock Sun, 27 May 2012 17:44:37 GMT status, milestone changed; cc set https://svn.boost.org/trac10/ticket/6939#comment:1 https://svn.boost.org/trac10/ticket/6939#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">pbristow@…</span> added </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.51.0</span> </li> </ul> Ticket John Maddock Mon, 28 May 2012 16:27:02 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6939#comment:2 https://svn.boost.org/trac10/ticket/6939#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</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/78723" title="Tighten Weibull distro tests. Fix corner cases in Weibull distro. ...">[78723]</a>) Tighten Weibull distro tests. Fix corner cases in Weibull distro. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6939" title="#6939: Bugs: pdf(weibull(shape, scale), 0) == 0 even if shape &lt;= 1 (closed: fixed)">#6939</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6938" title="#6938: Bugs: weibull_distribution accepts shape == 0, but shape should be &gt;0 (closed: fixed)">#6938</a>. </p> Ticket