Function Math Engineering Class

Erf

Compute the error function.

Signature (Visual Basic / VBA)

Public Function Erf( _
    ByVal vX As Variant _
    ) As Variant

Code Example

    Erf(-5.0) = -0.999999999998463
    Erf(-1.0) = -0.842700792949715
    Erf(-0.5) = -0.520499877813047
    Erf(+0.0) = 0
    Erf(+0.5) = 0.520499877813047
    Erf(+1.0) = 0.842700792949715
    Erf(+5.0) = 0.999999999998463

Parameters

Parameter Description
vX Function returns Null if vX is Null or cannot be fixed up to a Double precision floating point number.