ee.Number.erfcInv

  • Computes the inverse complementary error function of a given input number.

  • Returns the result as a number, representing the inverse erfc value.

  • Accepts a single numeric input, ranging from 0 to 1 (or numbers that will be interpreted as such).

  • erfcInv(0) results in Infinity, erfcInv(1) results in 0, and values between 0 and 1 provide the corresponding inverse complementary error function values.

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