Erf


Erf(x)

The error function, defined as:

[math]\displaystyle{ Erf(x) = {2\over\sqrt{\pi}} \int_0^x e^{-t^2} dt }[/math]

ErfGraph.png

Erfc(x)

Some publications use the [math]\displaystyle{ erfc(x) }[/math] function, which is defined as 1-Erf(x). A separate Erfc function is not built into Analytica.

Erfi(x)

Another variation that appears is some publications is the [math]\displaystyle{ erfi(x) }[/math] function. Erfi is a real-valued function when «x» is real, and essentially gives the function that appears on the imaginary axis of the complex Erf function. Hence, erfi is equivalent to

-1j * Erf(1j * x)

In practice, the Erfi function grows so quickly that numeric overflow is likely to occur in any algorithms that use it. Hence, it is better to use the Dawson function. The relationship between Erfi and Dawson is given by

[math]\displaystyle{ erfi(x) = {2\over\sqrt\pi} e^{x^2} D(x) }[/math]

History

  • Starting in Analytica 5.0, the complex error function (i.e, in which the parameter «x» is a complex number) is supported.

See Also

Comments


You are not allowed to post comments.