Loading

SQRT

math

The SQRT function consumes a numeric parameter from the top of the stack and pushes back its square root.

For negative numbers, SQRT returns NaN.

Since 2.6.0, this function can be applied to a list of numeric values. In this case, the function is applied to each element of the list thus returning a list.

Since 2.7.1, this fonction can be also applied to a GTS. In this case, the function is applied to each value of the given GTS, returning a new GTS.

SQRT is available since version 1.0.0.

See also

Signatures

Examples

49 SQRT 49 0.5 ** -42 SQRT ISNaN