Boost C++ Libraries: Ticket #13344: Noncentral chi-squared distribution with 0 degrees of freedom https://svn.boost.org/trac10/ticket/13344 <p> Hello, </p> <blockquote> <p> Boost returns an error when we supply 0 for the degrees of freedom of chi-squared distribution: </p> </blockquote> <pre class="wiki">#include &lt;iostream&gt; #include &lt;cmath&gt; #include "boost/math/distributions/non_central_chi_squared.hpp" int main(){ std::cout &lt;&lt; boost::math::cdf(boost::math::non_central_chi_squared(0, 1), 1); return 0; } </pre><p> <em>Error in function boost::math::non_central_chi_squared_distribution&lt;double&gt;::non_central_chi_squared_distribution(double,double): Degrees of freedom argument is 0, but must be &gt; 0 '' </em></p> <p> However this distribution makes sense. It has a density. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13344 Trac 1.4.3 John Maddock Tue, 31 Jul 2018 17:58:46 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/13344#comment:1 https://svn.boost.org/trac10/ticket/13344#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">obsolete</span> </li> </ul> <p> Moved to <a class="ext-link" href="https://github.com/boostorg/math/issues/142"><span class="icon">​</span>https://github.com/boostorg/math/issues/142</a> </p> Ticket