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 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 equivelent to the math expression:
The exponentiation operator is a binary operator. The base is an expression or number that is being raised to some exponent. The exponent expression is denoted using superscript text.