Ninja Library - Mathematical Function

njSqrt

Returns a square root

FORMAT

Float njSqrt( n )
Float n

PARAMETER

 n  Arbitrary real number 

RETURN

Value of square root

DESCRIPTION

Returns the square root of a given real number and returns the value found as the result.

EXAMPLE

ans = njSqrt( -3.14159265f );
% Result %
ans = -1.772454

NOTE

If the value of arbitrary real number n is negative, the negative of the square root of the absolute value of n is returned.

REFERENCE

njHypot()

njSqrt
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999