ee.Number.erfc

  • Number.erfc() computes the complementary error function of a number input.

  • The function takes a single number input and returns a number output.

  • Examples demonstrate calculating the complementary error function for various positive and negative inputs using JavaScript and Python.

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

Examples

Code Editor (JavaScript)

 print 
 ( 
 'Complementary error function of -10' 
 , 
  
 ee 
 . 
 Number 
 ( 
 - 
 10 
 ). 
 erfc 
 ()); 
  
 // 2 
 print 
 ( 
 'Complementary error function of -0.001' 
 , 
  
 ee 
 . 
 Number 
 ( 
 - 
 0.001 
 ). 
 erfc 
 ()); 
  
 // 1.001128378 
 print 
 ( 
 'Complementary error function of 0' 
 , 
  
 ee 
 . 
 Number 
 ( 
 0 
 ). 
 erfc 
 ()); 
  
 // 1 
 print 
 ( 
 'Complementary error function of 0.001' 
 , 
  
 ee 
 . 
 Number 
 ( 
 0.001 
 ). 
 erfc 
 ()); 
  
 // 0.998871621 
 print 
 ( 
 'Complementary error function of 10' 
 , 
  
 ee 
 . 
 Number 
 ( 
 10 
 ). 
 erfc 
 ()); 
  
 // 2.088487583e-45 

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 
 ( 
 'Complementary error function of -10:' 
 , 
 ee 
 . 
 Number 
 ( 
 - 
 10 
 ) 
 . 
 erfc 
 ()) 
 # 2 
 display 
 ( 
 'Complementary error function of -0.001:' 
 , 
 ee 
 . 
 Number 
 ( 
 - 
 0.001 
 ) 
 . 
 erfc 
 ()) 
 # 1.001128378 
 display 
 ( 
 'Complementary error function of 0:' 
 , 
 ee 
 . 
 Number 
 ( 
 0 
 ) 
 . 
 erfc 
 ()) 
 # 1 
 display 
 ( 
 'Complementary error function of 0.001:' 
 , 
 ee 
 . 
 Number 
 ( 
 0.001 
 ) 
 . 
 erfc 
 ()) 
 # 0.998871621 
 display 
 ( 
 'Complementary error function of 10:' 
 , 
 ee 
 . 
 Number 
 ( 
 10 
 ) 
 . 
 erfc 
 ()) 
 # 2.088487583e-45 
Create a Mobile Website
View Site in Mobile | Classic
Share by: