You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia> using Hecke
Welcome to
_ _ _
| | | | | |
| |__| | ___ ___| | _____
| __ |/ _ \/ __| |/ / _ \
| | | | __/ (__| < __/
|_| |_|\___|\___|_|\_\___|
Version 0.18.13 ...
... which comes with absolutely no warranty whatsoever
(c) 2015-2023 by Claus Fieker, Tommy Hofmann and Carlo Sircana
julia> R, x = polynomial_ring(QQ, "x");
julia> F, z = number_field(x^2+1);
julia> f = polynomial(F, [1, 2, 3])
3*x^2 + 2*x + 1
julia> facts = factor(f)
3 * (3*x^2 + 2*x + 1)
julia> factor_squarefree(f)
1 * (x^2 + 2//3*x + 1//3)
The result of factor looks wrong, I had expected that the product of facts.unit and the a^e for (a, e) in facts yields f.
(The result of factor_squarefree could be correct if the documentation of the function would state that f is silently divided by its leading coefficient; anyhow, changing factor_squarefree such that the leading coefficient appears in the result does not fix the factor problem.)
Looking into the code, one finds that there are alternatives for computing the factors.
Consider the following session.
The result of
factor
looks wrong, I had expected that the product offacts.unit
and thea^e
for(a, e)
infacts
yieldsf
.(The result of
factor_squarefree
could be correct if the documentation of the function would state thatf
is silently divided by its leading coefficient; anyhow, changingfactor_squarefree
such that the leading coefficient appears in the result does not fix thefactor
problem.)Looking into the code, one finds that there are alternatives for computing the factors.
Perhaps the functions expect that the argument is monic ...
... no, apparently not.
I am lost: Which of these results are intentional, where is the bug?
The text was updated successfully, but these errors were encountered: