170.101 μs (1576 allocations: 82.45 KiB)
+@btime gcd(gcd($f, $g), $h)
99.201 μs (1576 allocations: 82.45 KiB)
3 + x
With Groebner.jl
:
F = [f, g, h]
-@btime groebner($F)
286.702 μs (2134 allocations: 214.23 KiB)
+@btime groebner($F)
169.401 μs (2134 allocations: 214.23 KiB)
1-element Vector{DynamicPolynomials.Polynomial{DynamicPolynomials.Commutative{DynamicPolynomials.CreationOrder}, MultivariatePolynomials.Graded{MultivariatePolynomials.LexOrder}, Int64}}:
3 + x