ERF Function

Returns the value of the (normal) error function.

Categories: Mathematical
Arithmetic
Returned data type: DOUBLE

Syntax

Arguments

expression

specifies any valid expression that evaluates to a numeric value.

Data type DOUBLE
See <sql-expression>
FedSQL Expressions

Details

The ERF function returns the integral, given by the following:
You can use the ERF function to find the probability (p) that a normally distributed random variable with mean 0 and standard deviation will take on a value less than X. For example, the quantity that is given by the following statement is equivalent to PROBNORM(X):
p=.5+.5*erf(x/sqrt(2));

Example

The following statements illustrate the ERF function:
Statement
Result
select erf(1.0);
0.8427007929
select erf(-1.0);
-0.842700793

See Also

Last updated: February 23, 2017