Boost C++ Libraries: Ticket #2512: interval cosh: wrong result if interval contains 0 (but is not identical to [0,0]) https://svn.boost.org/trac10/ticket/2512 <p> The last line (line 179) of the cosh function in the file transc.hpp should imho read: </p> <p> return I(static_cast&lt;T&gt;(1), rnd.cosh_up(-x.lower() &gt; x.upper() ? x.lower() : x.upper()), true); </p> <p> instead of </p> <p> return I(static_cast&lt;T&gt;(0), rnd.cosh_up(-x.lower() &gt; x.upper() ? x.lower() : x.upper()), true); </p> <p> since the cosh(0) == 1. Otherwise the function will return the wrong result. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2512 Trac 1.4.3 Marshall Clow Fri, 29 Jan 2010 18:01:36 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2512#comment:1 https://svn.boost.org/trac10/ticket/2512#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">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/59350" title="Applied patches to fix #2512 and #2513">[59350]</a>) Applied patches to fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2512" title="#2512: Bugs: interval cosh: wrong result if interval contains 0 (but is not ... (closed: fixed)">#2512</a> and <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2513" title="#2513: Bugs: rint not present in Visual Studio 2008 (closed: fixed)">#2513</a> </p> Ticket