---
title: "Construction"
canonical: "https://docs.magma-maths.org/v2.30-1/GlobalFields/EtaleAlgebras/construct.html"
source: "https://docs.magma-maths.org/v2.30-1/GlobalFields/EtaleAlgebras/construct.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": "Introduction", "source": "https://docs.magma-maths.org/v2.30-1/GlobalFields/EtaleAlgebras/intro.md"}
next: {"title": "Attributes", "source": "https://docs.magma-maths.org/v2.30-1/GlobalFields/EtaleAlgebras/attr.md"}
intrinsics:
  - {"name": "EtaleAlgebra", "signature": "EtaleAlgebra(seq): SeqEnum[FldNum] -> AlgEtQ"}
  - {"name": "EtaleAlgebra", "signature": "EtaleAlgebra(f): RngUPolElt[RngInt] -> AlgEtQ"}
  - {"name": "EtaleAlgebra", "signature": "EtaleAlgebra(f): RngUPolElt[FldRat] -> AlgEtQ"}
  - {"name": "DirectProduct", "signature": "DirectProduct(seq): SeqEnum[AlgEtQ] -> AlgEtQ, SeqEnum[Map], SeqEnum[Map]"}
examples:
  - "ex-e44d0f"
---

# Construction

<a id="function-etalealgebra-seqenum-fldnum"></a>
## `EtaleAlgebra(seq): SeqEnum[FldNum] -> AlgEtQ`

Given a sequence of number fields returns the étale algebra corresponding to the direct product. Note: the number fields with `DefiningPolynomial` of degree one should be created with the parameter `DoLinearExtension` set to `true`.

<a id="example-ex-e44d0f"></a>
## `Example: Etale Algebra of Two Copies of Q (ex-e44d0f)`

We now consider the étale algebra consisting of two copies of the rational field.

```magma
> _<x> := PolynomialRing(Integers());
> QQ := NumberField(x-1:DoLinearExtension);
> A := EtaleAlgebra([QQ,QQ]);
> a := PrimitiveElement(A); a;
<1, 2>
```

<a id="function-etalealgebra-rngupolelt-rngint"></a>
## `EtaleAlgebra(f): RngUPolElt[RngInt] -> AlgEtQ`

<a id="function-etalealgebra-rngupolelt-fldrat"></a>
## `EtaleAlgebra(f): RngUPolElt[FldRat] -> AlgEtQ`

Given a squarefree polynomial over the integers or rationals returns the product of the number fields defined by the irreducible factors.

<a id="function-directproduct-seqenum-algetq"></a>
## `DirectProduct(seq): SeqEnum[AlgEtQ] -> AlgEtQ, SeqEnum[Map], SeqEnum[Map]`

Given a sequence of étale algebras over ${{\Q}}$, returns their direct product, together with the natural inclusions and projections.
