Skip to content

Commit

Permalink
corrected hilbert_polynomial
Browse files Browse the repository at this point in the history
@8d1h: resolves #505
  • Loading branch information
Wolfram Decker committed Jun 30, 2021
1 parent 1911457 commit 7341893
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Rings/mpoly-graded.jl
Original file line number Diff line number Diff line change
Expand Up @@ -634,11 +634,9 @@ function hilbert_polynomial(H::HilbertData)
a = fmpq[]
nf = fmpq(1)
d = degree(dn)-1
for i=0:d
push!(a, q(1)//nf)
if i>0
nf *= i
end
for i=1:d+1
push!(a, q(1)//nf)
nf *= i
q = derivative(q)
end
Qt, t = QQ["t"]
Expand Down

0 comments on commit 7341893

Please sign in to comment.