WorksheetFunction.Erf Method

Returns the error function integrated between lower_limit and upper_limit.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function Erf ( _
    Arg1 As Object, _
    Arg2 As Object _
) As Double
'Usage
Dim instance As WorksheetFunction
Dim Arg1 As Object
Dim Arg2 As Object
Dim returnValue As Double

returnValue = instance.Erf(Arg1, Arg2)
double Erf(
    Object Arg1,
    Object Arg2
)

Parameters

  • Arg1
    Type: System.Object

    Lower_limit - the lower bound for integrating Erf.

  • Arg2
    Type: System.Object

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

Return Value

Type: System.Double

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

Equation for calculating Erf method

Figure 2: Equation for calculating Erf method

Equation for calculating Erf method

See Also

Reference

WorksheetFunction Interface

WorksheetFunction Members

Microsoft.Office.Interop.Excel Namespace