Skip to content
Draft
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
20 changes: 0 additions & 20 deletions src/HeckeMoreStuff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -744,26 +744,6 @@ function (R::QQPolyRing)(a::Generic.RationalFunctionFieldElem{QQFieldElem})
return R(numerator(a))
end

@doc raw"""
zeros(f::ZZPolyRingElem) -> Vector{ZZRingElem}

Computes the integer zeros of a given polynomial $f$.
"""
function zeros(f::ZZPolyRingElem)

fac = factor(f)
zeros = ZZRingElem[]

# check if there are monic linear factors <-> zeros
for i in fac
if degree(i[1]) == 1 && leading_coefficient(i[1]) == 1
push!(zeros, -coeff(i[1], 0))
end
end

return zeros
end

function lift!(x::fpFieldElem, z::ZZRingElem)
set!(z, x.data)
return z
Expand Down
Loading