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

base of the exponential expression.

e

power by which to raise the base.

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