FUNCTION REFERENCE

erf

Error function.

Error function.

Syntax

y = erf(x)

Elementwise erf(x) = 2/sqrt(pi) * integral from 0 to x of exp(-t^2).

Example

erf(0.5)   % 0.5205

Differences from MATLAB: Real double and logical input only.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.