Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Make q monic before computing cubic resolvent
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemeyer committed Jan 2, 2014
1 parent 9b5558e commit 9e2dd44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/rings/number_field/splitting_field.py
Expand Up @@ -303,7 +303,7 @@ def splitting_field(poly, name, map=False, degree_multiple=None, simplify=True,
# In degree 4, use cubic resolvent
if d == 4 and mq >= 12: # mq must be 12 or 24
# Compute cubic resolvent
a0, a1, a2, a3, a4 = q.Vecrev()
a0, a1, a2, a3, a4 = (q/q.pollead()).Vecrev()
assert a4 == 1
cubicpol = pari([4*a0*a2 - a1*a1 -a0*a3*a3, a1*a3 - 4*a0, -a2, 1]).Polrev()
cubicfactors = Kpol.nffactor(cubicpol)[0]
Expand Down

0 comments on commit 9e2dd44

Please sign in to comment.