sqrt

Navigation:  Language Reference > Functions > Arithmetic >

sqrt

Previous pageReturn to chapter overviewNext page

Syntax

X = sqrt(Y);

Description

Returns the square root of X or the elements of X.

Examples

X

sqrt(X)

1

1

2.1

1.44913

4

2

[1,2.1;4,1]

[1,1.44913;2,1]

-1

not allowed!

 

Limitations

X and Y must have the same size. X or the elements of X must be larger than or equal to zero.