Edit

Share via


WorksheetFunction.Erf(Object, Object) Method

Definition

Returns the error function integrated between lower_limit and upper_limit.

public double Erf (object Arg1, object Arg2);
Public Function Erf (Arg1 As Object, Optional Arg2 As Object) As Double

Parameters

Arg1
Object

Lower_limit - the lower bound for integrating Erf.

Arg2
Object

Upper_limit - the upper bound for integrating Erf. If omitted, Erf integrates between zero and lower_limit.

Returns

Remarks

Important: This function has been replaced with one or more new functions that may provide improved accuracy and whose names better reflect their usage. This function is still available for compatibility with earlier versions of Excel. However, if backward compatibility is not required, you should consider using the new functions from now on, because they more accurately describe their functionality. For more information about the new function, see the Erf_Precise(Object) method.

If lower_limit is nonnumeric, Erf returns the #VALUE! error value.

If lower_limit is negative, Erf returns the #NUM! error value.

If upper_limit is nonnumeric, Erf returns the #VALUE! error value.

If upper_limit is negative, Erf returns the #NUM! error value.

Figure 1: Equation for calculating Erf method

Figure 2: Equation for calculating Erf method

Applies to