Create the ideal x * O.
The order O that the ideal I is defined over.
The product IJ of the (fractional) ideals I and J, generated by the products of elements of I and elements of J.
The quotient of the (fractional) ideals I and J of an order O. This is the fractional ideal K of O with the property that J K=I.
The sum of the (fractional) ideals I and J, generated by the sums of elements of I and elements of J.
The k-th power of the (fractional) ideal I (for an integer k).
Given an element x of (or coercible into) a number field K, and a (fractional) ideal I in an order of K, return the product of the ideal and the principal ideal generated by x.
Create the fractional ideal I / x
Return the least common multiple of ideals I and J. They must both be defined over the same maximal order.
The intersection of the (fractional) ideals I and J.They must both be defined over the same maximal order.
Given a (fractional) ideal I of O, return two elements of O that generate I as an ideal.
Given a (fractional) ideal I of O, return two elements of the field of fractions of O that generate I as an ideal.
Given an integral ideal I of O, return two elements of the field of fractions of O that form a two-element normal presentation for I, as well as an integer g such that I is g-normal.Currently this produces reliable results only when I is a prime ideal.
The denominator of the fractional ideal I. This is the smallest positive integer d such that dI is an integral ideal.
The index of the integral ideal I, when viewed as a sublattice of the order O. This is the same as the cardinality of the finite quotient ring O/I.
The norm of the fractional ideal I. This returns the index of the ideal if the ideal is integral, and defined on fractional ideals by multiplicativity (so that the norm of I^(-1) equals the reciprocal of the norm of I.
Given an ideal I this function returns the least positive integer m contained in I.
Returns, for a prime ideal I of an order O lying over the rational prime p, the maximal exponent e such that I^e divides the principal ideal pO.
Given a prime ideal I this function returns the residue class degree f of the ideal I.
Given a prime ideal I and an ideal J in an order O, return the valuation v_I(J) of J at I, that is, the number of factors I in the prime ideal decomposition of J. Note that, since the ideal J is allowed to be a fractional ideal, the returned value may be a negative integer.
Given a rational prime number p and an order O, return a sequence of tuples consisting of prime ideals and exponents, according to the decomposition of p in O.
Returns the prime ideal factorization of an ideal I in an order O, as a sequence of two-tuples (prime ideal and integer exponent).
Given an order O as well as a positive integer bound B, return a sequence consisting of all prime ideals in O whose norm is a (rational) prime not exceeding the bound B.
Given an ideal I of an order O of the number field K, this function returns a Z-basis for I as a sequence of elements of K.
Returns the basis matrix for the ideal I of O. The basis matrix consists of the elements of a Z-basis for the ideal written as rows of rational coefficients with respect to the power basis of the number field K of which O is an order.
Returns the transformation matrix for the ideal I of O, as well as a denominator. The transformation matrix consists of the elements of a Z-basis for the ideal written as columns of coefficients with respect to the basis of the order O.
Returns the multiplicator ring of the ideal I of the order O, that is, the subring of elements of the field of fractions of O that multiply I into itself.
Returns the p-radical of an order O for a prime integer p, defined as the ideal consisting of elements of O for which some power lies in the principal ideal pO.
The predicates listed below allow fractional ideals as argument.
True if and only if the fractional ideal I is integral.
True if and only if I is a prime ideal, and false otherwise. If I is not prime, the function also returns a proper divisor (ideal).Currently this function becomes very slow for ideals with large norm.
Returns true if the fractional ideal I of the order O is a principal ideal, false otherwise. If I is principal, a generator (as an element of the field of fractions of O) is also returned.Note that this function may take a very long time to return. This is partly due to the fact that IsPrincipal needs knowledge about units, and hence the calculation of the unit group will be triggered if necessary.
True if I is the zero ideal, false otherwise.
> function IdealFactorization(I) > primes := [Parent(I)|]; > expts := [Integers()|]; > facts := [I]; > while not IsEmpty(facts) do > term := facts[1]; > Remove( ~facts, 1 ); > flag, divisor := IsPrime( term ); > if flag then > pos := Index( primes, term ); > if pos eq 0 then > Append( ~primes, term ); > Append( ~expts, 1 ); > else > expts[pos] +:= 1; > end if; > else > Append( ~facts, divisor ); > Append( ~facts, I/divisor ); > end if; > end while; > return [ <primes[i], expts[i]> : i in [1..#primes] ]; > end function;
Returns an element e of O such that (e_1 - e) is in I_1 and (e_2 - e) is in I_2.
A primitive element of an ideal I is an element a which is in I but not in the square of I. This function returns such an element a.
Creates the quotient ring Q=O/I.
True iff a is the zero element of the quotient ring Q.
True iff a is the one element of the quotient ring Q.
True iff a is the minus one element of the quotient ring Q.
A canonical representative of a (belonging to O) in the quotient ring O/I.
If I is a prime ideal of O, this function returns the finite field F isomorphic to O/I and the map O -> F.
Finding Galois groups of (normal closures) of number fields
in general is a hard problem. The implementation of the GaloisGroup
function below was adapted from a version developed by the
Pari group in Bordeaux.
GaloisGroup(K) : FldNum -> GrpPerm, [ FldPrElt ]
Given a number field K, defined by an irreducible monic polynomial of degree n over the integers, this function returns a permutation group that forms the Galois group of the normal closure of K (in some algebraic closure of Q). The permutation group acts on the point 1, 2, ..., n. If the roots of f are calculated in the process, they are returned as the second argument. As a temporary condition, the roots will only be computed if n>6. Currently this function is restricted to field and polynomial of degree n<12.[Next] [Prev] [_____] [Left] [Up] [Index] [Root]