Erf
The Gauss error function , the shape behind the normal distribution's CDF.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wikipedia
Error functionMathWorldErfWikidataQ579262DLMF7.2.E1FungrimErf✓Fungrim entryWolfram LanguageErf!Erf(z)the Gauss error function .SageMath
erf(z)SymPyerf(z)mpmatherf(z)Juliaenumeratio_ball(erf, z)Rusterf(z)Typed signatures
| Type | Package | Applies |
|---|---|---|
(complex | signed_infinity) -> complex | compute-engine | always |
(number, number?) -> number | analyticreplaces compute-engine | always |
Details
- Odd function: .
- , and -- the total (signed) area under the Gaussian.
- Complementary with Erfc: .
- Builds the normal CDF: .
- compute-engine requires an inexact (floating-point) argument to produce a numeric value under plain evaluation; an exact integer or rational argument is left symbolic outside the special points 0 and .
Plot
Examples
Basic #
live ↗
InOut
live ↗
InOut
live ↗
InOut
erf as z -> ComplexInfinity has no limit -- the approach direction decides it (1 real, i imaginary)
live ↗InOut
Scope #
Interval arithmetic: Erf is increasing, so the image of an interval is the interval of the endpoint images
live ↗InOut
Applications #
Properties #
Possible issues #
An exact integer argument is left unevaluated under plain evaluation -- pair with N() or use an inexact argument like 0.5 for a decimal
live ↗InOut
compute-engine's complex Erf runs in doubles, so past a double's 15 or so figures N leaves it unevaluated rather than print a double as 25.
live ↗InOut
About
| Examples | 24 |
|---|---|
| Checked against | Wolfram Language 21 agree3 differSageMath 17 agree2 differ1 unevaluatedSymPy 21 agree2 differmpmath 16 agree1 differJulia 15 agree1 differ1 errorRust 11 agree |
| Crosswalk | WikipediaMathWorldWikidataDLMFFungrimFungrim entry ×9Wolfram LanguageSageMathSymPympmathJulia ×2Rust |
Implementation
mapped
sympypackages/oracle/src/mappings.tsmapped
sympypackages/oracle/src/mappings.tsSymPy's erf2(x, y) is the same difference but stays unevaluated even at float arguments, so the difference is written out: erf(z1) - erf(z0), each term SymPy's own erf.
mapped
mpmathpackages/oracle/src/mappings.tsmapped
mpmathpackages/oracle/src/mappings.tsmapped
sagepackages/oracle/src/mappings.tsmapped
juliapackages/oracle/src/mappings.tsmapped
juliapackages/oracle/src/mappings.tsmapped
rustpackages/oracle/src/mappings.ts