FANDOM


Sqrt

Name Edit

Sqrt - returns square root of scalars and vectors.

Synopsis Edit

vector1 sqrt(vector1 a);
vector2 sqrt(vector2 a);
vector3 sqrt(vector3 a);
vector4 sqrt(vector4 a);

Parameters Edit

a
Vector or scalar of which to determine the square root.

Description Edit

Returns the square root of a.

For vectors, the returned vector contains the square root of each element of the input vector. The square root of zero is zero. Ideally, the square root of negative values returns NaN (Not a Number). sqrt is often implemented as the reciprocal of a reciporcal squrare root approximation in older profiles.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.