summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9339659)
These happened if a non-normalised common factor was equal to zero.
Thanks to Feng Feng for reporting this bug.
gc = x;
else
gc = gcd(gc, x);
gc = x;
else
gc = gcd(gc, x);
if (gc.is_equal(_ex1))
return e;
if (gc.is_equal(_ex1))
return e;
+ if (gc.is_zero())
+ return _ex0;
+
// The GCD is the factor we pull out
factor *= gc;
// The GCD is the factor we pull out
factor *= gc;