Opened 6 years ago

Closed 4 years ago

#12964 closed Bugs (fixed)

Boost polynomial multiplication

Reported by: Adam Biggs <ambiggs23@…> Owned by: John Maddock
Milestone: To Be Determined Component: math
Version: Boost 1.63.0 Severity: Problem
Keywords: polynomial Cc:

Description

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

polynomial<int> p{0};
polynomial<int> q{1, 1};

std::cout << (p * q == p) <<  (0 * q == p)

output:

 01

Simple fix is to jsut call normalize() after the polynomial multiplication

Change History (1)

comment:1 by John Maddock, 4 years ago

Resolution: fixed
Status: newclosed

This has since been fixed.

Note: See TracTickets for help on using tickets.