Boost C++ Libraries: Ticket #12964: Boost polynomial multiplication https://svn.boost.org/trac10/ticket/12964 <p> Very simple little issue. After multiplying two boost::math::tools::polynomial s together the function polynomial::normalize() is not called and thus we don't reduce polynomials to their natural form. Note that it is called for the more general multiplication e.g </p> <pre class="wiki">polynomial&lt;int&gt; p{0}; polynomial&lt;int&gt; q{1, 1}; std::cout &lt;&lt; (p * q == p) &lt;&lt; (0 * q == p) </pre><p> output: </p> <pre class="wiki"> 01 </pre><p> Simple fix is to jsut call normalize() after the polynomial multiplication </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12964 Trac 1.4.3 John Maddock Tue, 31 Jul 2018 17:44:10 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/12964#comment:1 https://svn.boost.org/trac10/ticket/12964#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> This has since been fixed. </p> Ticket