#252: Make number fields work when polynomial not integral or not monic.
---------------------------------+-----------------------------
Reporter: was | Owner: davidloeffler
Type: defect | Status: new
Priority: major | Milestone: sage-6.4
Component: number fields | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
---------------------------------+-----------------------------
Comment (by pbruin):
In !SageMath 6.7.beta1:
{{{
sage: R.<x> = QQ[]
sage: L.<b> = NumberField(x^2-1/2)
sage: L.discriminant()
8
sage: L.ring_of_integers()
Maximal Order in Number Field in b with defining polynomial x^2 - 1/2
}}}
However, there are still problems; see e.g. #18243. We should make use of
the fact that when one feeds a non-monic or non-integral polynomial `f` to
PARI's `nfinit()`, it returns a pair `[nf, c]` where `nf` is an number
field isomorphic to '''Q'''[''x'']/(''f'') and defined by a monic integral
polynomial, and `c` is a root of `f` in `nf`.
--
Ticket URL: <http://trac.sagemath.org/ticket/252#comment:17>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.