erfi

Imaginary error function.

Category: Mathematics > Mathematical Functions

Syntax

Y = erfi(X)

Evaluates erfi(x) = -i*erf(i*x) for each element.

Description

The function equals 2/sqrt(pi) times the integral from 0 to x of exp(t^2). Unlike erf, which saturates at 1, erfi grows without bound, roughly like exp(x^2)/x. It is odd, and erfi(0) is 0.

Input arguments

X
Numeric or symbolic array.

Output arguments

Y
Array of the same size. It is real for real X.

Example

Values

erfi([0 0.5 1])
erfi(sym(0))
Output
ans = 1×3

         0    0.6150    1.6504
ans = 0

See also

erf erfc dawson fresnelc