{ "name": "ErfApprox", "summary": "The error function by Abramowitz and Stegun's formula 7.1.26, within 1.5e-7 of the exact value everywhere.", "tags": [ "special functions", "approximation", "statistics" ], "sources": [ { "title": "Abramowitz and Stegun, Handbook of Mathematical Functions, formula 7.1.26" } ], "cases": [ { "call": "ErfApprox(0.0)" }, { "call": "ErfApprox(0.5)" }, { "call": "ErfApprox(-1.0)" }, { "call": "ErfApprox(2.0)" }, { "call": "ErfApprox(3.5)" } ], "references": [ { "lang": "python", "level": "plain", "file": "ref/python/plain.py", "note": "The same formula." }, { "lang": "python", "level": "libm", "file": "ref/python/libm.py", "note": "math.erf, the C library's correctly rounded erf: the approximation must stay within its stated 1.5e-7 of it.", "abs": 1.5e-07 }, { "lang": "mojo", "level": "plain", "file": "ref/mojo/plain.mojo", "note": "The same formula in Mojo." } ] }