bluescarni / piranha

The Piranha computer algebra system.
GNU General Public License v3.0
101 stars 25 forks source link

checks for monomial exponent overflows not needed in truncated multiplication #131

Open darioizzo opened 6 years ago

darioizzo commented 6 years ago

When performing a truncated multiplication, the checks for the overflow in the exponents are not needed and actually harmful.

As an example, when performing a substitution in a polynomial (say p = x^14), I may want to substitute x with y^14. This could overflow the exponent type and throw. But in the ring of truncated polinomials such a substitution is perfectly valid and can be represented as the resulting poly would not contain terms overflowed as they are truncated. This is an important issue, for example, in the software audi/pyaudi when inverting Taylor maps.