Announcement: All noncommercial projects registered to use Earth Engine before April 15, 2025 must verify noncommercial eligibility to maintain Earth Engine access.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[[["\u003cp\u003eCalculates the trigamma function for a given numerical input.\u003c/p\u003e\n"],["\u003cp\u003eAccepts a single numerical input and returns the corresponding trigamma value as a number.\u003c/p\u003e\n"],["\u003cp\u003eProvides examples in JavaScript and Python demonstrating the usage and output of the function with various input values.\u003c/p\u003e\n"]]],[],null,["# ee.Number.trigamma\n\nComputes the trigamma function of the input.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------|---------|\n| Number.trigamma`()` | Number |\n\n| Argument | Type | Details |\n|---------------|--------|------------------|\n| this: `input` | Number | The input value. |\n\nExamples\n--------\n\n### Code Editor (JavaScript)\n\n```javascript\nprint('Trigamma for -100', ee.Number(-100).trigamma()); // Infinity\nprint('Trigamma for 0.001', ee.Number(0.001).trigamma()); // 1000001.642533195\nprint('Trigamma for 0.5', ee.Number(0.5).trigamma()); // 4.934802200\nprint('Trigamma for 1', ee.Number(1).trigamma()); // 1.644934066\nprint('Trigamma for 100', ee.Number(100).trigamma()); // 0.010050166\nprint('Trigamma for 200', ee.Number(200).trigamma()); // 0.005012520\n```\nPython setup\n\nSee the [Python Environment](/earth-engine/guides/python_install) page for information on the Python API and using\n`geemap` for interactive development. \n\n```python\nimport ee\nimport geemap.core as geemap\n```\n\n### Colab (Python)\n\n```python\nprint('Trigamma for -100:', ee.Number(-100).trigamma().getInfo()) # Infinity\n\n# 1000001.642533195\nprint('Trigamma for 0.001:', ee.Number(0.001).trigamma().getInfo())\nprint('Trigamma for 0.5:', ee.Number(0.5).trigamma().getInfo()) # 4.934802200\nprint('Trigamma for 1:', ee.Number(1).trigamma().getInfo()) # 1.644934066\nprint('Trigamma for 100:', ee.Number(100).trigamma().getInfo()) # 0.010050166\nprint('Trigamma for 200:', ee.Number(200).trigamma().getInfo()) # 0.005012520\n```"]]