ee.Number.cbrt

  • Calculates the cubic root of a given numerical input.

  • Accessible through the cbrt() method, applied to an ee.Number object in both JavaScript and Python.

  • Returns a new ee.Number object representing the cubic root of the input number.

Computes the cubic root of the input.

UsageReturns
Number.cbrt()Number
ArgumentTypeDetails
this: inputNumberThe input value.

Examples

Code Editor (JavaScript)

print('Cubic root of 27', ee.Number(27).cbrt());  // 3

Python setup

See the Python Environment page for information on the Python API and using geemap for interactive development.

import ee
import geemap.core as geemap

Colab (Python)

print('Cubic root of 27:', ee.Number(27).cbrt().getInfo())  # 3