Power Function

Summary

Returns the result of b raised to the y power.

Syntax

pow(b,y)

Arguments

Name Description
b b represents the base of the expression
y y represents the exponent part of the expression

Usage

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.

Base 2 Examples

pow(2,0) = 1
pow(2,1) = 2
pow(2,2) = 4
pow(2,3) = 8

Base 3 Examples

pow(3,0) = 1
pow(3,1) = 3
pow(3,2) = 9
pow(3,3) = 27

Explanation

The power function is equivalent to the math expression: