---
title: "Elements Operations"
canonical: "https://docs.magma-maths.org/v2.30-1/LocalFields/GeneralPAdicExtensions/elements.html"
source: "https://docs.magma-maths.org/v2.30-1/LocalFields/GeneralPAdicExtensions/elements.md"
part: "Local Fields"
chapter: "General $p$-Adic Extensions"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Local Fields", "source": "https://docs.magma-maths.org/v2.30-1/LocalFields/index-local-fields.md"}
  - {"title": "General $p$-Adic Extensions", "source": "https://docs.magma-maths.org/v2.30-1/LocalFields/GeneralPAdicExtensions/index-general-padic-extensions.md"}
prev: {"title": "Automorphisms and Galois Theory", "source": "https://docs.magma-maths.org/v2.30-1/LocalFields/GeneralPAdicExtensions/galois.md"}
next: {"title": "Polynomial Factorization", "source": "https://docs.magma-maths.org/v2.30-1/LocalFields/GeneralPAdicExtensions/poly_fact.md"}
intrinsics:
  - {"name": "!", "signature": "L ! r: RngLocA, Any -> RngLocAElt"}
  - {"name": ".", "signature": "L . i: RngLocA, RngIntElt -> RngLocAElt"}
  - {"name": "InertialElement", "signature": "InertialElement(L): RngLocA -> RngLocAElt"}
  - {"name": "UniformizingElement", "signature": "UniformizingElement(L): RngLocA -> RngLocAElt"}
  - {"name": "*", "signature": "a * b: RngLocAElt, RngLocAElt -> RngLocAElt"}
  - {"name": "+", "signature": "a + b: RngLocAElt, RngLocAElt -> RngLocAElt"}
  - {"name": "-", "signature": "a - b: RngLocAElt, RngLocAElt -> RngLocAElt"}
  - {"name": "-", "signature": "- a: RngLocAElt -> RngLocAElt"}
  - {"name": "^", "signature": "a ^ n: RngLocAElt, RngIntElt -> RngLocAElt"}
  - {"name": "/", "signature": "a / b: RngLocAElt, RngLocAElt -> RngLocAElt"}
  - {"name": "eq", "signature": "a eq b: RngLocAElt, RngLocAElt -> BoolElt"}
  - {"name": "IsOne", "signature": "IsOne(a): RngLocAElt -> BoolElt"}
  - {"name": "IsMinusOne", "signature": "IsMinusOne(a): RngLocAElt -> BoolElt"}
  - {"name": "IsWeaklyZero", "signature": "IsWeaklyZero(a): RngLocAElt -> BoolElt"}
  - {"name": "IsZero", "signature": "IsZero(a): RngLocAElt -> BoolElt"}
  - {"name": "Valuation", "signature": "Valuation(a): RngLocAElt -> RngExtReElt"}
  - {"name": "RelativePrecision", "signature": "RelativePrecision(a): RngLocAElt -> RngExtReElt"}
  - {"name": "Eltseq", "signature": "Eltseq(a): RngLocAElt -> SeqEnum"}
  - {"name": "RepresentationMatrix", "signature": "RepresentationMatrix(a): RngLocAElt -> AlgMatElt"}
  - {"name": "Norm", "signature": "Norm(a): RngLocAElt -> RngElt"}
  - {"name": "Norm", "signature": "Norm(a, F): RngLocAElt, Rng -> RngElt"}
  - {"name": "Trace", "signature": "Trace(a): RngLocAElt -> RngElt"}
  - {"name": "Trace", "signature": "Trace(a, F): RngLocAElt, Rng -> RngElt"}
  - {"name": "MinimalPolynomial", "signature": "MinimalPolynomial(a): RngLocAElt -> RngUPolElt"}
  - {"name": "MinimalPolynomial", "signature": "MinimalPolynomial(a, F): RngLocAElt -> RngUPolElt"}
examples:
  - "ex-0bf192"
---

# Elements Operations

<a id="operation-op-rngloca-any"></a>
## `L ! r: RngLocA, Any -> RngLocAElt`

Return the element of the local field $L$ described by $r$ where $r$ may be anything which is coercible into the quotient representation of $L$.

<a id="operation-operation-rngloca-rngintelt-rnglocaelt"></a>
## `L . i: RngLocA, RngIntElt -> RngLocAElt`

Return the generator of the local field $L$. The only valid input for $i$ is $1$.

<a id="function-inertialelement-rngloca"></a>
## `InertialElement(L): RngLocA -> RngLocAElt`

Return a generator for the inertial subfield of the local field $L$.

<a id="function-uniformizingelement-rngloca"></a>
## `UniformizingElement(L): RngLocA -> RngLocAElt`

Return an element of the local field $L$ of valuation $1$.

## Arithmetic

<a id="operation-op-times-rnglocaelt-rnglocaelt"></a>
### `a * b: RngLocAElt, RngLocAElt -> RngLocAElt`

<a id="operation-op-plus-rnglocaelt-rnglocaelt"></a>
### `a + b: RngLocAElt, RngLocAElt -> RngLocAElt`

<a id="operation-op-minus-rnglocaelt-rnglocaelt"></a>
### `a - b: RngLocAElt, RngLocAElt -> RngLocAElt`

<a id="operation-operation-rnglocaelt-rnglocaelt"></a>
### `- a: RngLocAElt -> RngLocAElt`

<a id="operation-op-pow-rnglocaelt-rngintelt"></a>
### `a ^ n: RngLocAElt, RngIntElt -> RngLocAElt`

<a id="operation-op-div-rnglocaelt-rnglocaelt"></a>
### `a / b: RngLocAElt, RngLocAElt -> RngLocAElt`

## Predicates on Elements

<a id="operation-op-eq-rnglocaelt-rnglocaelt"></a>
### `a eq b: RngLocAElt, RngLocAElt -> BoolElt`

Return whether the local field elements $a$ and $b$ are considered equal.

<a id="function-isone-rnglocaelt"></a>
### `IsOne(a): RngLocAElt -> BoolElt`

<a id="function-isminusone-rnglocaelt"></a>
### `IsMinusOne(a): RngLocAElt -> BoolElt`

Return whether the local field element $a$ is known to be $1$ or $-1$ to the precision of the field.

<a id="function-isweaklyzero-rnglocaelt"></a>
### `IsWeaklyZero(a): RngLocAElt -> BoolElt`

Return whether the local field element $a$ is not known to be non zero.

<a id="function-iszero-rnglocaelt"></a>
### `IsZero(a): RngLocAElt -> BoolElt`

Return whether the local field element $a$ is known to be zero.

## Other Operations on Elements

<a id="function-valuation-rnglocaelt"></a>
### `Valuation(a): RngLocAElt -> RngExtReElt`

The valuation of the element $a$ in a local field.

<a id="function-relativeprecision-rnglocaelt"></a>
### `RelativePrecision(a): RngLocAElt -> RngExtReElt`

The relative precision of the element $a$ in a local field.

<a id="function-eltseq-rnglocaelt"></a>
### `Eltseq(a): RngLocAElt -> SeqEnum`

Return the coefficients of powers of the generator of the parent of $a$ in $a$.

<a id="function-representationmatrix-rnglocaelt"></a>
### `RepresentationMatrix(a): RngLocAElt -> AlgMatElt`

The representation matrix of the element $a$ of a local field.

<a id="function-norm-rnglocaelt"></a>
### `Norm(a): RngLocAElt -> RngElt`

<a id="function-norm-rnglocaelt-rng"></a>
### `Norm(a, F): RngLocAElt, Rng -> RngElt`

<a id="function-trace-rnglocaelt"></a>
### `Trace(a): RngLocAElt -> RngElt`

<a id="function-trace-rnglocaelt-rng"></a>
### `Trace(a, F): RngLocAElt, Rng -> RngElt`

<a id="function-minimalpolynomial-rnglocaelt"></a>
### `MinimalPolynomial(a): RngLocAElt -> RngUPolElt`

<a id="function-minimalpolynomial-rnglocaelt-2"></a>
### `MinimalPolynomial(a, F): RngLocAElt -> RngUPolElt`

Return the norm, trace, or minimal polynomial of $a$. If a coefficient field $F$ of the parent $L$ of $a$ is given then the norm, trace, or minimal polynomial will be that of $a$ as an element of $L$ represented as an extension of $F$.

<a id="example-ex-0bf192"></a>
### `Example: Uniformizing and Inertial Elements (ex-0bf192)`

Continuing from the first example we have :

```magma
> UniformizingElement(L);
a^2 + (6 + O(7^50))*a + 3 + O(7^50)
> InertialElement(L);
a + O(7^50)
> Valuation(UniformizingElement(L));
1
> Valuation(InertialElement(L));
0
> Eltseq(UniformizingElement(L));
[ 3 + O(7^50), 6 + O(7^50), 1 + O(7^50) ]
```
