Difference between revisions of "Erf"
m (adding doc status category) |
m (4.7 -> 5.0) |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
[[Category:Doc Status C]] <!-- For Lumina use, do not change --> | [[Category:Doc Status C]] <!-- For Lumina use, do not change --> | ||
− | The error function. | + | == Erf(x) == |
− | + | ||
− | {{ | + | The error function, defined as: |
+ | :<math>Erf(x) = {2\over\sqrt{\pi}} \int_0^x e^{-t^2} dt</math> | ||
+ | |||
+ | [[image:ErfGraph.png]] | ||
+ | |||
+ | === Erfc(x) === | ||
+ | |||
+ | Some publications use the <math>erfc(x)</math> function, which is defined as <code>1-[[Erf]](x)</code>. A separate Erfc function is not built into Analytica. | ||
+ | |||
+ | === Erfi(x) === | ||
+ | |||
+ | Another variation that appears is some publications is the <math>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 | ||
+ | :<code>-1j * [[Erf]](1j * x)</code> | ||
+ | |||
+ | 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>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 == | ||
+ | |||
+ | * [[ErfInv]] -- the inverse error function | ||
+ | * [[CumNormal]] -- the closely related cumulative normal density function. | ||
+ | * [[Sigmoid]] -- another sigmoidal shape function | ||
+ | * [[Dawson]] | ||
+ | * [[Faddeeva]] |
Latest revision as of 01:20, 28 April 2016
Erf(x)
The error function, defined as:
- [math]\displaystyle{ Erf(x) = {2\over\sqrt{\pi}} \int_0^x e^{-t^2} dt }[/math]
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
Enable comment auto-refresher