Elements
Elements in orders have two representations: they can be viewed as elements in the giving the coefficients wrt to the order basis where they are elements in. On the other hand, as every order is in a field, they also have a representation as number field elements. Since, asymptotically, operations are more efficient in the field (due to fast polynomial arithmetic) than in the order, the primary representation is that as a field element.
Creation
Elements are constructed either as linear combinations of basis elements or via explicit coercion. Elements will be of type NfAbsOrdElem, the type if actually parametrized by the type of the surrounding field and the type of the field elements. E.g. the type of any element in any order of an absolute simple field will be NfAbsOrdElem{AnticNumberField,nf_elem}
#
NfAbsOrd — Type.
(O::NumFieldOrd)(a::IntegerUnion) -> NumFieldOrdElem
Given an element of type fmpz or Integer, this function coerces the element into .
(O::NfAbsOrd)(arr::Vector{fmpz})
Returns the element of with coefficient vector arr.
Basic properties
#
parent — Method.
parent(a::NumFieldOrdElem) -> NumFieldOrd
Returns the order of which is an element.
#
elem_in_nf — Method.
elem_in_nf(a::NumFieldOrdElem) -> NumFieldElem
Returns the element considered as an element of the ambient number field.
#
coordinates — Method.
coordinates(a::NfAbsOrdElem) -> Vector{fmpz}
Returns the coefficient vector of with respect to the basis of the order.
#
discriminant — Method.
discriminant(B::Vector{NumFieldOrdElem})
Returns the discriminant of the family of algebraic numbers, i.e. .
discriminant(E::EllCrv{T}) -> T
Compute the discriminant of .
discriminant(C::HypellCrv{T}) -> T
Compute the discriminant of .
discriminant(O::AlgssRelOrd)
Returns the discriminant of .
#
== — Method.
==(x::NumFieldOrdElem, y::NumFieldOrdElem) -> Bool
Returns whether and are equal.
Arithmetic
All the usual arithmetic operatinos are defined:
-(::NUmFieldOrdElem)+(::NumFieldOrdElem, ::NumFieldOrdElem)-(::NumFieldOrdElem, ::NumFieldOrdElem)*(::NumFieldOrdElem, ::NumFieldOrdElem)^(::NumFieldOrdElem, ::Int)mod(::NfAbsOrdElem, ::Int)mod_sym(::NumFieldOrdElem, ::fmpz)powermod(::NfAbsOrdElem, ::fmpz, ::Int)
Miscellaneous
#
representation_matrix — Method.
representation_matrix(a::NfAbsOrdElem) -> fmpz_mat
Returns the representation matrix of the element .
#
representation_matrix — Method.
representation_matrix(a::NfAbsOrdElem, K::AnticNumberField) -> FakeFmpqMat
Returns the representation matrix of the element considered as an element of the ambient number field . It is assumed that is the ambient number field of the order of .
#
tr — Method.
tr(a::NumFieldOrdElem)
Returns the trace of as an element of the base ring.
#
norm — Method.
norm(a::NumFieldOrdElem)
Returns the norm of as an element in the base ring.
#
absolute_norm — Method.
absolute_norm(a::NumFieldOrdElem) -> fmpz
Return the absolute norm as an integer.
#
absolute_tr — Method.
absolute_tr(a::NumFieldOrdElem) -> fmpz
Return the absolute trace as an integer.
#
rand — Method.
rand(O::NfOrd, n::IntegerUnion) -> NfAbsOrdElem
Computes a coefficient vector with entries uniformly distributed in and returns the corresponding element of the order .
#
minkowski_map — Method.
minkowski_map(a::NumFieldOrdElem, abs_tol::Int) -> Vector{arb}
Returns the image of under the Minkowski embedding. Every entry of the array returned is of type arb with radius less then 2^-abs_tol.
#
conjugates_arb — Method.
conjugates_arb(x::NumFieldOrdElem, abs_tol::Int) -> Vector{acb}
Compute the conjugates of as elements of type acb. Recall that we order the complex conjugates such that for .
Every entry of the array returned satisfies radius(real(y)) < 2^-abs_tol, radius(imag(y)) < 2^-abs_tol respectively.
#
conjugates_arb_log — Method.
conjugates_arb_log(x::NumFieldOrdElem, abs_tol::Int) -> Vector{arb}
Returns the elements as elements of type arb radius less then 2^-abs_tol.
#
t2 — Method.
t2(x::NumFieldOrdElem, abs_tol::Int = 32) -> arb
Return the -norm of . The radius of the result will be less than 2^-abs_tol.
#
minpoly — Method.
minpoly(a::NfAbsOrdElem) -> fmpz_poly
The minimal polynomial of .
#
charpoly — Method.
charpoly(a::NfAbsOrdElem) -> fmpz_poly
charpoly(a::NfAbsOrdElem, FlintZZ) -> fmpz_poly
The characteristic polynomial of .
#
factor — Method.
factor(a::NfOrdElem) -> Fac{NfOrdElem}
Computes a factorization of into irreducible elements. The return value is a factorization fac, which satisfies a = unit(fac) * prod(p^e for (p, e) in fac).
The function requires that is non-zero and that all prime ideals containing are principal, which is for example satisfied if class group of the order of is trivial.
#
denominator — Method.
denominator(a::NumFieldElem, O::NfOrd) -> fmpz
Returns the smallest positive integer such that is contained in .
#
discriminant — Method.
discriminant(B::Vector{NumFieldOrdElem})
Returns the discriminant of the family of algebraic numbers, i.e. .
discriminant(E::EllCrv{T}) -> T
Compute the discriminant of .
discriminant(C::HypellCrv{T}) -> T
Compute the discriminant of .
discriminant(O::AlgssRelOrd)
Returns the discriminant of .