NAME

sqr - square root function

SYNOPSIS

v = sqr(NumExpr)

DESCRIPTION

Sqr returns the positive square root of its argument.  The argument may be any numeric expression with a non-negative value. 

EXAMPLE

The program
	for x = 1 to 5
		print x, sqr(x)
	next
produces the following table of the square roots of the first five positive integers:
	 1             1
	 2             1.414213562373095
	 3             1.732050807568877
	 4             2
	 5             2.23606797749979

DIAGNOSTICS

If the argument to sqr is negative, an "Illegal function call" error occurs. 

from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber