ee.Number.erfcInv

  • Number.erfcInv() computes the inverse complementary error function of a number.

  • The method returns a Number.

  • Examples demonstrate how to use erfcInv() in both JavaScript and Python, showing the output for inputs 0, 0.001, and 1.

Computes the inverse complementary error function of the input.

UsageReturns
Number.erfcInv()Number
ArgumentTypeDetails
this: inputNumberThe input value.

Examples

Code Editor (JavaScript)

print('Inverse complementary error function of 0',
      ee.Number(0).erfcInv());  // Infinity

print('Inverse complementary error function of 0.001',
      ee.Number(0.001).erfcInv());  // 2.326753765

print('Inverse complementary error function of 1',
      ee.Number(1).erfcInv());  // 0

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)

print('Inverse complementary error function of 0:',
      ee.Number(0).erfcInv().getInfo())  # Infinity

print('Inverse complementary error function of 0.001:',
      ee.Number(0.001).erfcInv().getInfo())  # 2.326753765

print('Inverse complementary error function of 1:',
      ee.Number(1).erfcInv().getInfo())  # 0