Returns the result of b raised to the y power.
pow(b,y)
Name | Description |
---|---|
b | b represents the base of the expression |
y | y represents the exponent part of the expression |
The power function is used to calculate the result of the exponent operator for any two numbers. For example, when given an input of pow(5,2)
the power function returns 25
which is the result of raising to the power.
pow(2,0) = 1
pow(2,1) = 2
pow(2,2) = 4
pow(2,3) = 8
pow(3,0) = 1
pow(3,1) = 3
pow(3,2) = 9
pow(3,3) = 27
The power function is equivalent to the math expression: