To calculate the square

The function squares a number, i.e. multiplies it by itself. The result is always positive.

Syntax

sqr(number)

Return

number

Example

`sqr(x)`

To calculate the square of a number x.

**Result:** 9

**Result:** 9

**Result:** 9

See also

`sqrt`

which calculates the square root of a number.