Error function stand alone

Y = ERF_STAND_ALONE(X) is the error function for each element of X.
33 download
Aggiornato 3 mar 2016

Visualizza la licenza

erf_stand_alone(x) implementation is based on formula 7.1.26 from [1]. The maximum error is below 1.5 * 10-7.
The formula [1] appears as 1 – (a1 t^1 + a2 t^2 + a3 t^3 + a4 t^4 + a5 t^5) exp(-x^2), which is absolutely correct. But directly evaluating an nth order polynomial takes O(n^2) operations, while the factorization used in the code above uses O(n) operations. This technique is known as Horner’s method.

[1] Milton Abramowitz and Irene A. Stegun. Handbook of mathematical functions: with formulas, graphs, and mathematical tables. Vol. 55. Courier Corporation, 1964. Formula 7.1.26.

Cita come

Giacomo Alessandroni (2024). Error function stand alone (, MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2013b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Scopri di più su Error Functions in Help Center e MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release