next up previous contents
Next: ERFCX Complimentary Weighted Error Up: Mathematical Functions Previous: EONE Exponential Integral Function   Contents

Subsections

EI Exponential Integral Function

Usage

Computes the exponential integral function for real arguments. The ei function takes only a single argument

  y = ei(x)

where x is either a float or double array. The output vector y is the same size (and type) as x.

Function Internals

The ei function is defined by the integral:

$\displaystyle \mathrm{ei}(x) = -\int_{-x}^{\infty} \frac{e^{-t} dt}{t}.
$

Example

Here is a plot of the ei function over the range [-5,5].

--> x = linspace(-5,5);
--> y = ei(x);
--> plot(x,y); xlabel('x'); ylabel('ei(x)');

which results in the following plot.

3400



Samit K. Basu 2005-03-16