---
title: "Functions on Lazy Series Rings"
canonical: "https://docs.magma-maths.org/v2.30-1/LocalFields/LazyPowerSeriesRings/ring_ops.html"
source: "https://docs.magma-maths.org/v2.30-1/LocalFields/LazyPowerSeriesRings/ring_ops.md"
part: "Local Fields"
chapter: "Lazy Power Series Rings"
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": "Lazy Power Series Rings", "source": "https://docs.magma-maths.org/v2.30-1/LocalFields/LazyPowerSeriesRings/index-lazy-power-series-rings.md"}
prev: {"title": "Creation of Lazy Series Rings", "source": "https://docs.magma-maths.org/v2.30-1/LocalFields/LazyPowerSeriesRings/creation.md"}
next: {"title": "Elements", "source": "https://docs.magma-maths.org/v2.30-1/LocalFields/LazyPowerSeriesRings/elements.md"}
intrinsics:
  - {"name": ".", "signature": "R . i: RngPowLaz, RngIntElt -> RngPowLazElt"}
  - {"name": "AssignNames", "signature": "AssignNames(~R, S): RngPowLaz, [MonStgElt]"}
  - {"name": "BaseRing", "signature": "BaseRing(R): RngPowLaz -> Rng"}
  - {"name": "CoefficientRing", "signature": "CoefficientRing(R): RngPowLaz -> Rng"}
  - {"name": "Rank", "signature": "Rank(R): RngPowLaz -> RngIntElt"}
  - {"name": "eq", "signature": "R1 eq R2: RngPowLaz, RngPowLaz -> BoolElt"}
examples:
  - "ex-aee740"
---

# Functions on Lazy Series Rings

Lazy series rings have variables, names for their variables, and a coefficient ring.

<a id="operation-operation-rngpowlaz-rngintelt-rngpowlazelt"></a>
## `R . i: RngPowLaz, RngIntElt -> RngPowLazElt`

The $i$th variable of the lazy power series ring $R$, where $i$ is between $1$ and the rank of $R$.

<a id="procedure-assignnames-rngpowlaz-monstgelt-ref"></a>
## `AssignNames(~R, S): RngPowLaz, [MonStgElt]`

Given a lazy series ring $R$ with $n$ indeterminates and a sequence $S$ of $n$ strings, assign the elements of $S$ to the names of the variables of $R$.

<a id="function-basering-rngpowlaz"></a>
## `BaseRing(R): RngPowLaz -> Rng`

<a id="function-coefficientring-rngpowlaz"></a>
## `CoefficientRing(R): RngPowLaz -> Rng`

The coefficient ring of the lazy power series ring $R$. The coefficients of all the series in $R$ will lie in this ring.

<a id="function-rank-rngpowlaz"></a>
## `Rank(R): RngPowLaz -> RngIntElt`

The number of variables associated with the lazy power series ring $R$.

<a id="operation-op-eq-rngpowlaz-rngpowlaz"></a>
## `R1 eq R2: RngPowLaz, RngPowLaz -> BoolElt`

Return `true` if the lazy series rings $R1$ and $R2$ are the same ring, that is, they have the same coefficient ring and rank.

<a id="example-ex-aee740"></a>
## `Example: Names and Properties of a Lazy Series Ring (ex-aee740)`

The functions on lazy power series rings are illustrated here.

```magma
> L := LazyPowerSeriesRing(FiniteField(73), 7);
> L.4;
Lazy power series
> AssignNames(~L, ["a", "b", "c", "d", "fifth", "sixth", "seventh"]);
> L.4;
Lazy power series
```

The names for the variables of $L$ are not used in default series printing. However they are used when printing an element to a given precision using [`PrintToPrecision`](https://docs.magma-maths.org/v2.30-1/LocalFields/LazyPowerSeriesRings/elements.md#procedure-rnglaz-printtoprecision).

```magma
> CoefficientRing(L);
Finite field of size 73
> Rank(L);
7
> L eq LazyPowerSeriesRing(CoefficientRing(L), Rank(L));
true
```
