Boost C++ Libraries: Ticket #5560: cyl_bessel_j return NaN for low numbers https://svn.boost.org/trac10/ticket/5560 <p> Calculate cyl_bessel_j&lt;double, double&gt; for v = 10.0 and x = 1.0e-100. Return value is NaN instead of 0.0. Problem happens in file: \math\special_functions\detail\bessel_jn.hpp Line: 92. ratio become NaN. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5560 Trac 1.4.3 John Maddock Tue, 24 May 2011 11:21:01 GMT <link>https://svn.boost.org/trac10/ticket/5560#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5560#comment:1</guid> <description> <p> Confirmed, investigating. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Fri, 27 May 2011 17:24:40 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5560#comment:2 https://svn.boost.org/trac10/ticket/5560#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">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/72221" title="Update Bessel functions to use series representations when x is small ...">[72221]</a>) Update Bessel functions to use series representations when x is small compared to v and also to prevent the generation of NaN's in such cases. Update docs to match. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5560" title="#5560: Bugs: cyl_bessel_j return NaN for low numbers (closed: fixed)">#5560</a>. </p> Ticket John Maddock Sat, 28 May 2011 08:47:29 GMT status changed; resolution deleted https://svn.boost.org/trac10/ticket/5560#comment:3 https://svn.boost.org/trac10/ticket/5560#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> </ul> <p> Reopened: there's still an issue for v &lt; 0 and |v| &gt;&gt; x. Will be harder to fix though :-( </p> Ticket John Maddock Sun, 05 Jun 2011 16:56:36 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5560#comment:4 https://svn.boost.org/trac10/ticket/5560#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</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/72415" title="Add new series evaluation forms for the Bessel J and Y functions. Also ...">[72415]</a>) Add new series evaluation forms for the Bessel J and Y functions. Also take extra care when evaluating to avoid spurious overflow/underflow. Changed check_series_iterations to know the real-number type so messages are properly formatted. Updated docs to match and regenerated. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5560" title="#5560: Bugs: cyl_bessel_j return NaN for low numbers (closed: fixed)">#5560</a>. </p> Ticket