23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2erf, erfc, erfcx, erfinv, erfcinv<br />

Purpose Error functions<br />

erf, erfc, erfcx, erfinv, erfcinv<br />

Syntax Y = erf(X) Error function<br />

Y = erfc(X) Complementary error function<br />

Y = erfcx(X) Scaled complementary error function<br />

X = erfinv(Y) Inverse error function<br />

X = erfcinv(Y) Inverse complementary error function<br />

Definition The error function erf(X) is twice the integral of the Gaussian distribution<br />

with 0 mean and variance of 1 ⁄ 2 .<br />

erf( x)<br />

2<br />

------ e<br />

π<br />

t2<br />

x<br />

= –<br />

∫ dt<br />

0<br />

The complementary error function erfc(X) is defined as<br />

erfc( x)<br />

2<br />

------ e<br />

π<br />

t2<br />

∞<br />

= –<br />

∫ dt<br />

= 1 – erf( x)<br />

x<br />

The scaled complementary error function erfcx(X) is defined as<br />

erfcx( x)<br />

e<br />

For large X, erfcx(X) is approximately<br />

x2 = erfc( x)<br />

⎛ 1<br />

------ ⎞1<br />

--<br />

⎝ π ⎠x<br />

Description Y = erf(X) returns the value of the error function for each element of real<br />

array X.<br />

Y = erfc(X) computes the value of the complementary error function.<br />

Y = erfcx(X) computes the value of the scaled complementary error function.<br />

X = erfinv(Y) returns the value of the inverse error function for each element<br />

of Y. Elements of Y must be in the interval [-1 1]. The function erfinv<br />

satisfies y = erf( x)<br />

for – 1 ≤ y ≤1and – ∞ ≤ x ≤ ∞ .<br />

X = erfcinv(Y) returns the value of the inverse of the complementary error<br />

function for each element of Y. Elements of Y must be in the interval [0 2].<br />

The function erfcinv satisfies y = erfc( x)<br />

for 2 ≥ y ≥ 0 and – ∞ ≤ x ≤∞.<br />

2-493

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!