---
title: "Attributes"
canonical: "https://docs.magma-maths.org/v2.30-1/GlobalFields/EtaleAlgebras/attr.html"
source: "https://docs.magma-maths.org/v2.30-1/GlobalFields/EtaleAlgebras/attr.md"
part: "Global Fields"
chapter: "Étale Algebras"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Global Fields", "source": "https://docs.magma-maths.org/v2.30-1/GlobalFields/index-global-fields.md"}
  - {"title": "Étale Algebras", "source": "https://docs.magma-maths.org/v2.30-1/GlobalFields/EtaleAlgebras/index-etale-algebras.md"}
prev: {"title": "Construction", "source": "https://docs.magma-maths.org/v2.30-1/GlobalFields/EtaleAlgebras/construct.md"}
next: {"title": "Homomorphisms", "source": "https://docs.magma-maths.org/v2.30-1/GlobalFields/EtaleAlgebras/homs.md"}
intrinsics:
  - {"name": "DefiningPolynomial", "signature": "DefiningPolynomial(A): AlgEtQ -> RngUPolElt"}
  - {"name": "Components", "signature": "Components(A): AlgEtQ -> SeqEnum"}
  - {"name": "Dimension", "signature": "Dimension(A): AlgEtQ -> RngInt"}
  - {"name": "AbsoluteDimension", "signature": "AbsoluteDimension(A): AlgEtQ -> RngInt"}
  - {"name": "HasBaseField", "signature": "HasBaseField(A): AlgEtQ -> BoolElt"}
  - {"name": "BaseField", "signature": "BaseField(A): AlgEtQ -> FldNum, Map"}
  - {"name": "PrimeField", "signature": "PrimeField(A): AlgEtQ -> FldNum"}
  - {"name": "IsNumberField", "signature": "IsNumberField(A): AlgEtQ -> BoolElt, FldNum, Map"}
  - {"name": "eq", "signature": "A1 eq A2: AlgEtQ, AlgEtQ -> BoolElt"}
---

# Attributes

<a id="function-definingpolynomial-algetq"></a>
## `DefiningPolynomial(A): AlgEtQ -> RngUPolElt`

Returns the defining polynomial of the algebra $A$, if the corresponding number fields are distinct.

<a id="function-components-algetq"></a>
## `Components(A): AlgEtQ -> SeqEnum`

Returns the number fields of which the algebra $A$ is a product of, together with embeddings and projections.

<a id="function-dimension-algetq"></a>
## `Dimension(A): AlgEtQ -> RngInt`

Returns the dimension of the algebra $A$.

<a id="function-absolutedimension-algetq"></a>
## `AbsoluteDimension(A): AlgEtQ -> RngInt`

Return the dimension of the algebra $A$ over the prime field.

<a id="function-hasbasefield-algetq"></a>
## `HasBaseField(A): AlgEtQ -> BoolElt`

Returns whether the components of the algebra $A$ have a common base field.

<a id="function-basefield-algetq"></a>
## `BaseField(A): AlgEtQ -> FldNum, Map`

Returns the common base field of the algebra $A$, if it exists.

<a id="function-primefield-algetq"></a>
## `PrimeField(A): AlgEtQ -> FldNum`

Returns the prime field of the algebra $A$.

<a id="function-isnumberfield-algetq"></a>
## `IsNumberField(A): AlgEtQ -> BoolElt, FldNum, Map`

Returns whether $A$ has a single component (hence is a number field). If so, also returns the number field and an isomorphism from $A$ to it.

<a id="operation-op-eq-algetq-algetq"></a>
## `A1 eq A2: AlgEtQ, AlgEtQ -> BoolElt`

Returns whether the algebras $A1$ and $A2$ are equal.
