pow

From OpenGL Reference
Jump to navigation Jump to search

Return the value of the first parameter raised to the power of the second.

Declaration[edit]

genType pow( genType x, genType y );

Parameters[edit]

x - Specify the value to raise to the power y .
y - Specify the power to which to raise x .

Description[edit]

pow returns the value of [math]x[/math] raised to the [math]y[/math] power, i.e. [math]x^y[/math]. The result is undefined if [math]x \lt 0[/math] or if [math]x = 0[/math] and [math]y \leq 0[/math].

Version Support[edit]

pow 1.1+

See Also[edit]

sincossinhcosh 

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/.