Functions

sqrt

Supported By

Syntax

[the] sqrt of factor

sqrt ( expression )

Factor and expression yield integers, numbers, or complexes.

Example

put sqrt(opposite^2 + adjacent^2) into hypotenuse

Description

The sqrt function returns the square root of its argument.

If the argument is an integer or a number, a number is returned. If the integer or number is negative, NaN is returned. To get a complex result, convert the argument to a complex.

If the argument is a complex, a complex is returned.