square

Navigation:  Language Reference > Functions > Arithmetic >

square

Previous pageReturn to chapter overviewNext page

Syntax

Y = sqr(X);

Description

Returns the square of X or the elements of X.

Examples

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] )

 

Limitations

x and y must be scalars.