Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in hilbert_polynomial #505

Closed
8d1h opened this issue Jun 29, 2021 · 0 comments · Fixed by #507
Closed

bug in hilbert_polynomial #505

8d1h opened this issue Jun 29, 2021 · 0 comments · Fixed by #507

Comments

@8d1h
Copy link
Contributor

8d1h commented Jun 29, 2021

Hi! The function hilbert_polynomial sometimes gives wrong result.

julia> R, xi = grade(PolynomialRing(QQ, ["x$i" for i in 1:4])[1]);

julia> hilbert_polynomial(quo(R, ideal(R, sum(x^4 for x in xi)))[1]) # should be 2*t^2 + 2
2*t^2 + 6

I think the following line


should be changed to for i=1:d+1 (also the array b declared several lines below seems unnecessary)

wdecker pushed a commit that referenced this issue Jun 30, 2021
thofma pushed a commit that referenced this issue Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant