Boost C++ Libraries: Ticket #13620: Issue with computing quantiles for skew-normal https://svn.boost.org/trac10/ticket/13620 <p> The 0.075 skew-normal quantile breaks (returns an inf) with certain, seemingly reasonable parameters. Other surrounding values are okay. The complemented version works for some reason. </p> <p> Here's some test code </p> <pre class="wiki">#include &lt;iostream&gt; #include &lt;boost/math/distributions.hpp&gt; int main() { boost::math::skew_normal_distribution&lt;&gt; dist(2.0, 1.0, -2.5); std::vector&lt;double&gt; qs = { 0.05, 0.075, 0.1 }; for(auto q : qs) { std::cout &lt;&lt; "q : " &lt;&lt; q &lt;&lt; std::endl; std::cout &lt;&lt; "w/o complement: " &lt;&lt; quantile(dist, q) &lt;&lt; std::endl; std::cout &lt;&lt; "w complement: " &lt;&lt; quantile(complement(dist, 1 - q)) &lt;&lt; std::endl &lt;&lt; std::endl; } } </pre><p> Dunno how easy this is to fix. I can work around it where I'm using it, but it seems like something that could be fixed. </p> <p> Thanks! </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13620 Trac 1.4.3 Kohei Takahashi Mon, 02 Jul 2018 07:16:00 GMT component changed; owner set https://svn.boost.org/trac10/ticket/13620#comment:1 https://svn.boost.org/trac10/ticket/13620#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">math</span> </li> </ul> Ticket John Maddock Tue, 31 Jul 2018 18:04:40 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/13620#comment:2 https://svn.boost.org/trac10/ticket/13620#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">obsolete</span> </li> </ul> <p> Moved to <a class="ext-link" href="https://github.com/boostorg/math/issues/145"><span class="icon">​</span>https://github.com/boostorg/math/issues/145</a> </p> Ticket