ee.Array.cbrt

ریشه سوم ورودی را به‌صورت عنصر به عنصر محاسبه می‌کند.

کاربردبازگشتی‌ها
Array.cbrt()آرایه
متغیر مستقلنوعجزئیات
این: inputآرایهآرایه ورودی.

مثال‌ها

ویرایشگر کد (جاوا اسکریپت)

// Requires an explicit PixelType if no data.
print(ee.Array([], ee.PixelType.int8()).cbrt());  // []

print(ee.Array([0]).cbrt());  // [0]
print(ee.Array([27]).cbrt());  // [3]
print(ee.Array([-27]).cbrt());  // -3

print(ee.Array([0, 1, 8, 27]).cbrt());  // [0,1,2,3]
print(ee.Array([[0, 1, 8], [27, 64, 125]]).cbrt());  // [[0,1,2],[3,4,5]]

راه‌اندازی Python

برای اطلاعات درباره Python API و استفاده از geemap برای توسعه تعاملی، به صفحه محیط Python مراجعه کنید.

import ee
import geemap.core as geemap

Colab (Python)

# Requires an explicit PixelType if no data.
display(ee.Array([], ee.PixelType.int8()).cbrt())  # []

display(ee.Array([0]).cbrt())  # [0]
display(ee.Array([27]).cbrt())  # [3]
display(ee.Array([-27]).cbrt())  # -3

display(ee.Array([0, 1, 8, 27]).cbrt())  # [0, 1, 2, 3]

# [[0, 1, 2], [3, 4, 5]]
display(ee.Array([[0, 1, 8], [27, 64, 125]]).cbrt())