ee.Number.erf

Computes the error function of the input.

UsageReturns
Number.erf()Number
ArgumentTypeDetails
this: inputNumber

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