Type Function Library math.* Return value Number Revision Release 2024.3703 Keywords pow, power, exponent See also math.exp()
math.log()
Returns x^y^
. (You can also use the expression x^y
to compute this value.)
math.pow( x, y )
Number. The base.
Number. The exponent.
print(math.pow(100,0)) ----> 1 print(math.pow(7,2)) ----> 49 print(math.pow(2,8)) ----> 256