# inverse {#inverse}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

``inverse(X)``

## Arguments {#arguments}

**X** is a matrix.

## Details {#details}

Return the inverse matrix of *X* if it is invertible.

## Examples {#examples}

```
x=1..4$2:2;
x;
```

|\#0|\#1|
|---|---|
|1|3|
|2|4|

```
x.inverse();
```

|\#0|\#1|
|---|---|
|-2|1.5|
|1|-0.5|

