# solve {#solve}

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

## Syntax {#syntax}

`solve(X, Y)`

## Arguments {#arguments}

**X** is a square matrix;

**Y** is a vector.

## Details {#details}

It generates the vector b that solves X\*b=Y.

## Examples {#examples}

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

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

```
m.solve(7 10);
// output: [1, 2]
```

