[GiNaC-list] Possible bug in sqrfree
Richard B. Kreckel
kreckel at in.terlu.de
Wed Feb 3 08:32:03 CET 2016
Hello Diego,
On 02/01/2016 07:10 PM, Diego Conti wrote:
> if I understand correctly, the preconditions of sqrfree do not require
> the operand to be in expanded form. However, invoking it on some
> non-expanded polynomials results in a division-by-zero error on my
> system (code attached). Is this a bug in sqrfree? I am using gcc 5.1.1
> and GiNaC 1.6.6.
Thank you for reporting this problem. It is a bug in sqrfree. The
textbook implementation of Yun's algorithm doesn't cope with zero
polynomials in disguise. I've submitted a patch.
-richy.
--
Richard B. Kreckel
<http://in.terlu.de/~kreckel/>
More information about the GiNaC-list
mailing list