ee.Number.erf

  • This method computes the error function of the input number.

  • It takes a single Number as input and returns a Number.

  • Examples show how to use the erf() method in both JavaScript and Python with various input values.

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

Examples

Code Editor (JavaScript)

 print 
 ( 
 'Error function of -10' 
 , 
  
 ee 
 . 
 Number 
 ( 
 - 
 10 
 ). 
 erf 
 ()); 
  
 // -1 
 print 
 ( 
 'Error function of -0.001' 
 , 
  
 ee 
 . 
 Number 
 ( 
 - 
 0.001 
 ). 
 erf 
 ()); 
  
 // -0.001128378 
 print 
 ( 
 'Error function of 0' 
 , 
  
 ee 
 . 
 Number 
 ( 
 0 
 ). 
 erf 
 ()); 
  
 // 0 
 print 
 ( 
 'Error function of 0.001' 
 , 
  
 ee 
 . 
 Number 
 ( 
 0.001 
 ). 
 erf 
 ()); 
  
 // 0.001128378 
 print 
 ( 
 'Error function of 10' 
 , 
  
 ee 
 . 
 Number 
 ( 
 10 
 ). 
 erf 
 ()); 
  
 // 1 

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 
 ( 
 'Error function of -10:' 
 , 
 ee 
 . 
 Number 
 ( 
 - 
 10 
 ) 
 . 
 erf 
 ()) 
 # -1 
 # -0.001128378 
 display 
 ( 
 'Error function of -0.001:' 
 , 
 ee 
 . 
 Number 
 ( 
 - 
 0.001 
 ) 
 . 
 erf 
 ()) 
 display 
 ( 
 'Error function of 0:' 
 , 
 ee 
 . 
 Number 
 ( 
 0 
 ) 
 . 
 erf 
 ()) 
 # 0 
 # 0.001128378 
 display 
 ( 
 'Error function of 0.001:' 
 , 
 ee 
 . 
 Number 
 ( 
 0.001 
 ) 
 . 
 erf 
 ()) 
 display 
 ( 
 'Error function of 10:' 
 , 
 ee 
 . 
 Number 
 ( 
 10 
 ) 
 . 
 erf 
 ()) 
 # 1 
Create a Mobile Website
View Site in Mobile | Classic
Share by: