bug in factoring over number fields?

2 views
Skip to first unread message

David Harvey

unread,
Apr 2, 2008, 12:18:00 PM4/2/08
to sage-...@googlegroups.com
Is the following a bug?

sage: K.<a> = NumberField(x^2 + 1)
sage: R.<y, z> = PolynomialRing(K)
sage: f = 2*y^2 + 2*z^2
sage: F = f.factor(); F
2 * (y + (-a)*z) * (y + a*z)
sage: F.unit_part()
1

Shouldn't the unit part be 2? It seems to be listing 2 as a bona fide
factor.

(This was reported by Genya Zaytman.)

david

John Cremona

unread,
Apr 2, 2008, 12:57:07 PM4/2/08
to sage-...@googlegroups.com
You are right. As a list, F has three elements of which the first is
(2,1) -- i.e. 2 to the power 1 -- but when the list is converted to a
Factorization type this first factor is left alone instead of being
converted into the __unit part.

John

David Harvey

unread,
Apr 2, 2008, 5:36:19 PM4/2/08
to sage-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages