sqrt

From OpenGL Reference
Jump to navigation Jump to search

Return the square root of the parameter.

Declaration[edit]

genType sqrt( genType x );
genDType sqrt( genDType x );


Parameters[edit]

x - Specify the value of which to take the square root.


Description[edit]

 sqrt returns the square root of [math]x[/math], i.e. the value [math]\sqrt { x }[/math]. The result is undefined if [math]x \lt 0[/math].

Version Support[edit]

sqrt (genType) 1.1+
sqrt (genDType) 4.0+

See Also[edit]

 pow , inversesqrt 


Copyright[edit]

Copyright© 2011-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.