Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix boost::math::polynomial::evaluate for the zero polynomial #50

Merged
merged 1 commit into from Oct 19, 2016
Merged

Fix boost::math::polynomial::evaluate for the zero polynomial #50

merged 1 commit into from Oct 19, 2016

Conversation

kartikmohta
Copy link
Contributor

Due to a recent change in the representation of the zero polynomial (739c056), 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.

I opened a ticket regarding the same at https://svn.boost.org/trac/boost/ticket/12532 since I was not sure which is the preferred medium.

@jzmaddock jzmaddock merged commit 37fe39f into boostorg:develop Oct 19, 2016
@kartikmohta kartikmohta deleted the fix/boost-zero-polynomial-evaluate branch October 25, 2016 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants