Changed zero polynomial resulting from scaling to have one coefficient
This commit is contained in:
parent
37309d2817
commit
aef4f28f46
|
@ -88,8 +88,10 @@ begin
|
|||
factor := factor * AScaleFactor;
|
||||
end;
|
||||
end
|
||||
else
|
||||
SetLength(Result.FCoefficients, 0);
|
||||
else begin
|
||||
SetLength(Result.FCoefficients, 1);
|
||||
Result.FCoefficients[0] := TBigInt.Zero;
|
||||
end;
|
||||
end;
|
||||
|
||||
function TBigIntPolynomial.IsEqualTo(const AOther: TBigIntPolynomial): Boolean;
|
||||
|
|
Loading…
Reference in New Issue