Skip to content

Commit

Permalink
a more useful bound: log(r) not r
Browse files Browse the repository at this point in the history
  • Loading branch information
fieker committed Oct 23, 2024
1 parent 1c1764e commit 2407ea8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NumField/NfAbs/PolyFact.jl
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,8 @@ function van_hoeij(f::PolyRingElem{AbsSimpleNumFieldElem}, P::AbsNumFieldOrderId
_, mK = residue_field(order(P), P)
mK = extend(mK, K)
r = length(factor(map_coefficients(mK, f, cached = false)))
prec_scale = max(r, prec_scale)
prec_scale = max(nbits(r), prec_scale)

N = degree(f)
@vprintln :PolyFactor 1 "Having $r local factors for degree $N"

Expand Down

0 comments on commit 2407ea8

Please sign in to comment.