Boost C++ Libraries: Ticket #12532: boost::math::polynomial::evaluate does not work for the zero polynomial https://svn.boost.org/trac10/ticket/12532 <p> Due to a recent change in the representation of the zero polynomial, I think the evaluate function is broken for the zero polynomial. </p> <p> Currently if the evaluate method is called on a zero polynomial, it returns: </p> <pre class="wiki">/usr/include/boost/math/tools/rational.hpp:191: U boost::math::tools::evaluate_polynomial(const T*, const U&amp;, std::size_t) [with T = double; U = double; std::size_t = long unsigned int]: Assertion `count &gt; 0' failed. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12532 Trac 1.4.3 kartikmohta@… Sun, 16 Oct 2016 01:29:09 GMT attachment set https://svn.boost.org/trac10/ticket/12532 https://svn.boost.org/trac10/ticket/12532 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_zero_polynomial_evaluate.patch</span> </li> </ul> Ticket kartikmohta@… Mon, 17 Oct 2016 20:10:28 GMT version changed https://svn.boost.org/trac10/ticket/12532#comment:1 https://svn.boost.org/trac10/ticket/12532#comment:1 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.61.0</span> → <span class="trac-field-new">Boost Development Trunk</span> </li> </ul> Ticket kartikmohta@… Mon, 17 Oct 2016 20:24:42 GMT <link>https://svn.boost.org/trac10/ticket/12532#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12532#comment:2</guid> <description> <p> Also added a pull request on the github repo (<a class="ext-link" href="https://github.com/boostorg/math/pull/50"><span class="icon">​</span>https://github.com/boostorg/math/pull/50</a>) since I was not sure which is the preferred method. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Wed, 19 Oct 2016 18:34:32 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/12532#comment:3 https://svn.boost.org/trac10/ticket/12532#comment:3 <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> Confirmed and merge PR, many thanks! </p> Ticket