[Boost-bugs] [Boost C++ Libraries] #12532: boost::math::polynomial::evaluate does not work for the zero polynomial

Subject: [Boost-bugs] [Boost C++ Libraries] #12532: boost::math::polynomial::evaluate does not work for the zero polynomial
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-10-16 01:28:26


#12532: boost::math::polynomial::evaluate does not work for the zero polynomial
------------------------------+-------------------------
 Reporter: kartikmohta@… | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: math
  Version: Boost 1.61.0 | Severity: Regression
 Keywords: |
------------------------------+-------------------------
 Due to a recent change in the representation of the zero polynomial, I
 think the evaluate function is broken for the zero polynomial.

 Currently if the evaluate method is called on a zero polynomial, it
 returns:
 {{{
 /usr/include/boost/math/tools/rational.hpp:191: U
 boost::math::tools::evaluate_polynomial(const T*, const U&, std::size_t)
 [with T = double; U = double; std::size_t = long unsigned int]: Assertion
 `count > 0' failed.
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12532>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC