Integral bases, prime decomposition and valuations in number fields
Source:R/polys-numberfields.R
round_two.Rdround_two(T) computes the maximal order of the number field defined by
the irreducible polynomial T with the Round Two algorithm, returning
the order as a submodule of the power basis and the field discriminant.
prime_decomp(p, T) factors the rational prime p into prime ideals and
prime_valuation(I, P) is the valuation of an ideal at a prime ideal, as
SymPy's functions of the same names.
Value
For round_two() a list (ZK, dK); for prime_decomp() a
list of prime ideals; for prime_valuation() an integer.
Examples
x <- Symbol("x")
round_two(x^3 + x^2 - 2*x + 8)
#> (Submodule[[2, 0, 0], [0, 2, 0], [0, 1, 1]]/2, -503)
prime_decomp(2, x^3 + x^2 - 2*x + 8)
#> [[ (2, x^2 + 1) e=1, f=1 ], [ (2, (x^2 + 3*x + 2)/2) e=1, f=1 ], [ (2, (3*x^2 + 3*x)/2) e=1, f=1 ]]