# field_inverse function

The inverse of an element of a finite field.

## How to write it

### field_inverse(field, a)

**field**

A finite field, such as finite_field(5). Takes an expression.

**a**

A nonzero element. Takes a whole number.

## Examples

- $\displaystyle \operatorname{field\_inverse}(\operatorname{finite\_field}(5), 2) = 3$

  `field_inverse(finite_field(5), 2)`

  In the solver, `field_inverse(finite_field(5), 2)` gives `3`.

  [Open in the solver](https://hilberon.com/?q=field_inverse%28finite_field%285%29%2C%202%29)

## Related functions

- [field_add](https://hilberon.com/library/field_add)

  Sum of two elements of a finite field.
- [permutation_inverse](https://hilberon.com/library/permutation_inverse)

  The inverse of a permutation.
- [group_elements](https://hilberon.com/library/group_elements)

  The elements of a group, as permutations in cycle notation.
- [group_order](https://hilberon.com/library/group_order)

  How many elements a group has.
- [quaternion_norm](https://hilberon.com/library/quaternion_norm)

  The norm of a quaternion.
- [is_irreducible](https://hilberon.com/library/is_irreducible)

  Test whether a polynomial cannot be factored, over the rationals or modulo a prime.

---
Source: https://hilberon.com/library/field_inverse
