ee.Number.trigamma

  • Computes the trigamma function of the input number.

  • The trigamma method takes a single Number input and returns a Number.

  • Examples demonstrate the trigamma function's output for various input values in both JavaScript and Python.

Computes the trigamma function of the input.
Usage Returns
Number. trigamma () Number
Argument Type Details
this: input
Number The input value.

Examples

Code Editor (JavaScript)

 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 

Colab (Python)

 display 
 ( 
 'Trigamma for -100:' 
 , 
 ee 
 . 
 Number 
 ( 
 - 
 100 
 ) 
 . 
 trigamma 
 ()) 
 # Infinity 
 # 1000001.642533195 
 display 
 ( 
 'Trigamma for 0.001:' 
 , 
 ee 
 . 
 Number 
 ( 
 0.001 
 ) 
 . 
 trigamma 
 ()) 
 display 
 ( 
 'Trigamma for 0.5:' 
 , 
 ee 
 . 
 Number 
 ( 
 0.5 
 ) 
 . 
 trigamma 
 ()) 
 # 4.934802200 
 display 
 ( 
 'Trigamma for 1:' 
 , 
 ee 
 . 
 Number 
 ( 
 1 
 ) 
 . 
 trigamma 
 ()) 
 # 1.644934066 
 display 
 ( 
 'Trigamma for 100:' 
 , 
 ee 
 . 
 Number 
 ( 
 100 
 ) 
 . 
 trigamma 
 ()) 
 # 0.010050166 
 display 
 ( 
 'Trigamma for 200:' 
 , 
 ee 
 . 
 Number 
 ( 
 200 
 ) 
 . 
 trigamma 
 ()) 
 # 0.005012520 
Design a Mobile Site
View Site in Mobile | Classic
Share by: