Announcement: All noncommercial projects registered to use Earth Engine beforeApril 15, 2025 mustverify noncommercial eligibility to maintain access. If you have not verified by September 26, 2025, your access may be on hold.

ee.Array.digamma

  • The digamma function of the input array is computed element-wise.

  • Thedigamma() method on an Array returns an Array.

  • The input to thedigamma() method must be an Array.

  • Examples show computing the digamma function for scalar and array inputs in both JavaScript and Python.

On an element-wise basis, computes the digamma function of the input.

UsageReturns
Array.digamma()Array
ArgumentTypeDetails
this:inputArrayThe input array.

Examples

Code Editor (JavaScript)

print('Digamma for 0',ee.Array(0).digamma());// -Infinityprint('Digamma for 1',ee.Array(1).digamma());// -0.577print('Digamma for [1, 2]',ee.Array([1,2]).digamma());// -0.577, 0.423

Python setup

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

importeeimportgeemap.coreasgeemap

Colab (Python)

display('Digamma for 0:',ee.Array(0).digamma())# -Infinitydisplay('Digamma for 1:',ee.Array(1).digamma())# -0.577display('Digamma for [1, 2]:',ee.Array([1,2]).digamma())# -0.577, 0.423

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2023-10-06 UTC.