ee.Number.trigamma
Computes the trigamma function of the input.
Usage | Returns |
---|
Number.trigamma() | Number |
Argument | Type | Details |
---|
this: input | Number | The input value. |
Examples
print('Trigamma for -100', ee.Number(-100).trigamma()); // Infinity
print('Trigamma for 0.001', ee.Number(0.001).trigamma()); // 1000001.642533195
print('Trigamma for 0.5', ee.Number(0.5).trigamma()); // 4.934802200
print('Trigamma for 1', ee.Number(1).trigamma()); // 1.644934066
print('Trigamma for 100', ee.Number(100).trigamma()); // 0.010050166
print('Trigamma for 200', ee.Number(200).trigamma()); // 0.005012520
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
print('Trigamma for -100:', ee.Number(-100).trigamma().getInfo()) # Infinity
# 1000001.642533195
print('Trigamma for 0.001:', ee.Number(0.001).trigamma().getInfo())
print('Trigamma for 0.5:', ee.Number(0.5).trigamma().getInfo()) # 4.934802200
print('Trigamma for 1:', ee.Number(1).trigamma().getInfo()) # 1.644934066
print('Trigamma for 100:', ee.Number(100).trigamma().getInfo()) # 0.010050166
print('Trigamma for 200:', ee.Number(200).trigamma().getInfo()) # 0.005012520
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["Calculates the trigamma function for a given numerical input."],["Accepts a single numerical input and returns the corresponding trigamma value as a number."],["Provides examples in JavaScript and Python demonstrating the usage and output of the function with various input values."]]],[]]