Boost C++ Libraries: Ticket #13343: erf(NaN) and erfc(NaN) do not return NaN https://svn.boost.org/trac10/ticket/13343 <p> Hello, </p> <blockquote> <p> It is expected that erf(NaN) and erfc(NaN) are NaN, but they are not: </p> </blockquote> <pre class="wiki">#include &lt;iostream&gt; #include &lt;cmath&gt; #include "boost/math/special_functions/erf.hpp" int main(){ std::cout &lt;&lt; boost::math::erf(nan("")) &lt;&lt; "\n"; std::cout &lt;&lt; boost::math::erfc(nan("")) &lt;&lt; "\n"; return 0; } </pre><p> Output: </p> <pre class="wiki">1 0 </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13343 Trac 1.4.3 John Maddock Tue, 31 Jul 2018 17:57:01 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/13343#comment:1 https://svn.boost.org/trac10/ticket/13343#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/141"><span class="icon">​</span>https://github.com/boostorg/math/issues/141</a> </p> Ticket