Structure Operations#

Numerical Invariants#

The functions below are defined for the rational field \({\mathbb{Q}}\) mainly because it often arises as a degenerate case of quadratic or cyclotomic field constructions. See the corresponding Chapters Quadratic Fields and Cyclotomic Fields for more.

Characteristic(Q): FldRat -> RngIntElt#
Conductor(Q): FldRat -> RngIntElt#

The smallest positive integer \(n\) such that \(Q\) is contained in the cyclotomic field \({\mathbb{Q}}(\zeta_n)\). For the rational field this is \(1\).

Degree(Q): FldRat -> RngIntElt#
AbsoluteDegree(Q): FldRat -> RngIntElt#

The degree of \(Q\) as a number field (which is 1 for the rational field).

Discriminant(Q): FldRat -> RngIntElt#
AbsoluteDiscriminant(Q): FldRat -> RngIntElt#

The field discriminant of \(Q\) (which is 1 for the rational field).

DefiningPolynomial(Q): FldRat -> RngUPolElt#

An irreducible polynomial over \({\mathbb{Q}}\) a root of which generates \(Q\) as a number field (for the rational field this returns the linear polynomial \(x-1\)).

Signature(Q): FldRat -> RngIntElt, RngIntElt#

The signature (number of real embeddings and pairs of complex embeddings) of \({\mathbb{Q}}\).

Ring Predicates and Booleans#

IsCommutative(Q): FldRat -> BoolElt#
IsUnitary(Q): FldRat -> BoolElt#
IsFinite(Q): FldRat -> BoolElt#
IsOrdered(Q): FldRat -> BoolElt#
IsField(Q): FldRat -> BoolElt#
IsEuclideanDomain(Q): FldRat -> BoolElt#
IsPID(Q): FldRat -> BoolElt#
IsUFD(Q): FldRat -> BoolElt#
IsDivisionRing(Q): FldRat -> BoolElt#
IsEuclideanRing(Q): FldRat -> BoolElt#
IsPrincipalIdealRing(Q): FldRat -> BoolElt#
IsDomain(Q): FldRat -> BoolElt#
Q eq R: FldRat, FldRat -> BoolElt#
Q eq R: FldRat, RngInt -> BoolElt#
Q ne R: FldRat, FldRat -> BoolElt#
Q ne R: FldRat, RngInt -> BoolElt#