Sqr Function

Sqr calculates the square of real and complex numbers


Function

The Sqr function returns the square of real or complex numbers. The function is a simplified version of the function Power (x, 2). Instead of the function x2 can be used on the worksheet.

The argument can be a single number or a data field. For data fields, the square is calculated for each element and the results are returned in a data field of equal size. It should be noted that this also applies to matrices. No matrix multiplication is performed on Sqr (matrix). There are other functions available for this.

Syntax

Sqr (Real | Complex)

Sqr (List)

Sqr (Table)

Example

Sqr (4) = 16

Sqr (2 + 5i) = -21 + 20i