Sqr(x:Num):Num
Sqrt(x:Num):Num

Square root. Returns the square root of its argument, i.e. a number that, when multiplied by itself, returns the argument again. Square roots are defined for non-negative values only.

If the parameter is EMPTY, returns EMPTY.

This function can be used to compute distances using the Pythagorean theorem:

  dist := Sqrt(xDisplacement^2 + yDisplacement^2)

Note that PCC also offers a Distance function.

See also: Elementary Functions

This is a testing version.
It may be incomplete, and have more bugs (or features) than the public live version at planetscentral.com.