Math.pow()

Raise a number to a power.

Usage

Hover over inputs/exits for more info.

var Math = require('machinepack-math');


// Raise a number to a power.

Math.pow({

number: 8,

exponent: 2,

}).execSync();

Inputs

number required

The number to raise to a power.

8
exponent required

The exponent to raise the other number to.

2

Exits

error

An unexpected error occurred.

imaginary

Returns a number which, if multiplied by √-1, would represent the number raised to the specified fractional power.

8
success

OK.

64