Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/gcd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ _simplifier(a, b, algo, ma, mb) = _gcd(a, b, algo, ma, mb)
# `a1*a2*...*an + a0*a2*...*an x + ...`
# which makes the size of the `BigInt`s grow significantly which slows things down.
function _simplifier(a::Rational, b::Rational, algo, ma, mb)
return gcd(a.num, b.num) // gcd(a.den, b.den)
return gcd(a.num, b.num) // lcm(a.den, b.den)
end

# Largely inspired from from `YingboMa/SIMDPolynomials.jl`.
Expand Down