ERF
Updated 2024-03-14 14:28:03.303000
Syntax
SELECT [westclintech].[wct].[ERF] (
<@z, float,>)
Description
Use the scalar function ERF to calculate the error function. The error function is defined by:
\operatorname{erf}z=\frac{2}{\sqrt\pi}\sum_{n=0}^\infty\frac{(-1)^nz^{2n+1}}{n!(2n+1)}
Arguments
@z
is the value at which to evaluate the function. @z is an expression of type float or of a type that can be implicitly converted to float.
Return Type
float
Examples
select wct.ERF(.75);
This produces the following result.
{"columns":[{"field":"column 1","headerClass":"ag-right-aligned-header","cellClass":"ag-right-aligned-cell"}],"rows":[{"column 1":"0.711155633653513"}]}