Navigation: Language Reference > Functions > Arithmetic >
Y = sqr(X);
Returns the square of X or the elements of X.
X
sqr(X)
1
1 (= 12 )
2.1
4.41 (= 2.12 )
-2.6
6.76 (= -2.62 )
0
0 (= 02 )
[1,2.1;-2.6,0]
[1,4.41;6.76,0]
( = [12,2.12;-2.62,02] )
x and y must be scalars.