ee.Number.pow

Raises the first value to the power of the second.

UsageReturns
Number.pow(right)Number
ArgumentTypeDetails
this: leftNumber

The left-hand value.

rightNumber

The right-hand value.

Examples

Code Editor (JavaScript)

print('5 ** 2', ee.Number(5).pow(ee.Number(2)));  // 25
print('-5 ** 2', ee.Number(-5).pow(ee.Number(2)));  // 25
print('5 ** -2', ee.Number(5).pow(ee.Number(-2)));  // 0.04
print('5 ** 2.2', ee.Number(5).pow(ee.Number(2.2)));  // 34.493241536
print('5.2 ** 2', ee.Number(5.2).pow(ee.Number(2)));  // 27.040000000