Reference pow()

pow()

Calculates exponential expressions such as 23.

For example, pow(2, 3) evaluates the expression 2 × 2 × 2. pow(2, -3) evaluates 1 ÷ (2 × 2 × 2).

Examples

Syntax

pow(n, e)

Parameters

n
Number:

base of the exponential expression.

e
Number:

power by which to raise the base.

Returns

Number: n^e.
Notice any errors or typos? Please let us know. Please feel free to edit src/math/calculation.js and open a pull request!

Related References