Sqr, Sqrt Function

Purpose

Returns the positive square root of a numeric expression.

Syntax

# = Sqr(x)

# = Sqrt(x)

x:aexp

Description

Sqr and Sqrt are synonyms and calculate the square root of x.

Example

OpenW # 1

Print Sqrt(16)          // prints 4

Print Sqr(PI * 5.3 + 1) // prints 4.20124...

Remarks

If the function argument x is less than 0, Sqr(x) reports an error.

See Also

Square

{Created by Sjouke Hamstra; Last updated: 23/10/2014 by James Gaite}