Skip to content

Commit

Permalink
modified getroots
Browse files Browse the repository at this point in the history
  • Loading branch information
ToshiMowery committed Jun 26, 2024
1 parent 01b3eb1 commit fcc506c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NumberFields/NumberFields.m2
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ getRoots(RingElement) := opts -> (f) -> (
linearTerms := {};
for i from 0 to ((length primeFactors)-1) do(
if (degree primeFactors#i_0)#0 == 1 then (
linearTerms = append(linearTerms, MInv(primeFactors#i_0));
linearTerms = append(linearTerms, (gens R)_0 - MInv(primeFactors#i_0));
);
);
return linearTerms;
Expand Down

0 comments on commit fcc506c

Please sign in to comment.