sqrt

Syntax

sqrt(X)

Arguments

X is a scalar/vector/matrix.

Details

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

Examples

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

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