Returns the algebra to which the element x belongs to.
Given an element x, returns its components, which are elements of number fields.
Given an element x, returns the coordinates relative to the absolute basis, which are elements of the prime rational field.
Given an element x and an order S, returns the coordinates of x with respect to the stored Z-basis of S.
Return whether the element x is coercible into the algebra A and the result of the coercion if so.
Coerce x into the algebra A.
The multiplicative neutral element of the algebra A.
The additive neutral element of the algebra A.
Returns whether the element x is a unit in its algebra A.
Returns whether the element x is a zero-divisor in its algebra A.
Returns a random element of the algebra A. The coefficients are bounded by the positive integer bd.
bd: RngIntElt Default: 3
Returns a random element of the algebra A. The coefficients are bounded by the parameter bd (default 3).
Returns a random unit of the algebra A. The coefficients are bounded by the positive integer bd.
Returns whether the elements x1 and x2 are equal.
The multiplicative inverse of the algebra element x.
Given a sequence of AlgEtQElt returns the sum of the entries.
Given a sequence of AlgEtQElt returns the product of the entries.
Given two sequences a=[a1, ..., an] and b=[b1, ..., bn], returns ∑i ai.bi.
> _<x>:=PolynomialRing(Integers()); > f := (x^8+16)*(x^8+81); > A := EtaleAlgebra(f); > // We compute the `canonical` primitive element, which is the class of the variable x in A. > a := PrimitiveElement(A); a; <$.1, $.1> > // The algebra A has two components: > comps, embeddings, projections:=Components(A); > K1, K2 := Explode(comps); > // The unit element of each component corresponds to an orthogonal idempotent of A: > [ embeddings[1](K1!1),embeddings[2](K2!1) ] eq OrthogonalIdempotents(A); true > // We conclude this example by showing the use of DotProduct and its timings advantages: > N := 10^5; > elts1 := [ a+i : i in [1..N] ]; > elts2 := [ a-i : i in [1..N] ]; > time s1 := &+[ elts1[i]*elts2[i] : i in [1..N] ]; Time: 0.450 > time s2 := DotProduct(elts1,elts2); Time: 0.150 > s1 eq s2; true
Returns the minimal polynomial over the common base ring of the number fields defining the algebra A of the element x.
Returns the minimal polynomial over the ring F of the element x.
Returns the minimal polynomial over the prime field of the element x or an algebra.
Returns whether the element x of an algebra is integral (over the integers).
Evaluate the polynomial f at the algebra element a.
Returns the primitive element of the étale algebra A. Note that A has a primitive element only if it is the product of distinct number fields.Given an étale algebra A over Q there exists an element a∈A such that A = Q[a], that is, every element can be written as a polynomial with rational coefficients in a. Such an element is called a primitive element of A. It is characterized by having a minimal polynomial whose degree equals the absolute dimension of A.
The intrinsic PrimitiveElement produces such an element of the étale algebra A using a deterministic procedure which we now describe: Let N be the number of components of A, each one having primitive element ai. Set b1 = a1. For i=2, ..., N, set bi = ai + j where j is the smallest non-negative integer such that the minimal polynomial of ai + j is not in the set of minimal polynomials of the elements b1, ..., bi - 1. The output is the element of A whose components are b1, ..., bN. In particular, if A is a product of number fields with different defining polynomials, then the output is the element of A whose components are the primitive elements of the components.
Returns the power basis of the étale algebra A, consisting of powers of the primitive element of A.
Returns a basis of the algebra A over the common base field.
Returns a basis of the algebra A over the prime field.
Returns the i-th element of the absolute basis of A.
Given a sequence of elements and a basis over the PrimeField returns a sequence whose entries are the coordinates in the PrimeField with respect to the given basis.
Returns the orthogonal idempotent element of the étale algebra A.
Returns the idempotent element of the étale algebra A.