# sqrt {#sqrt}

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

## Syntax {#syntax}

`sqrt(X)`

## Arguments {#arguments}

**X** is a scalar/vector/matrix.

## Details {#details}

Return the square root of each element in *X*. The data type of the result is always DOUBLE.

## Examples {#examples}

```
sqrt(4 16 -4 NULL);
// output: [2,4, , ]

typestr(sqrt(4));
// output: DOUBLE
```

