Main Content

expint

Exponential integral function

Description

Y = expint(X) evaluates the exponential integral for each element of X.

example

Examples

collapse all

Find the exponential integral for X = 1+2i.

Y = expint(1+2i)
Y = 
-0.1268 - 0.0351i

Plot the exponential integral for X in the interval of [0,10].

X = 0:0.01:10;
Y = expint(X);
plot(X,Y)
axis([-1 10 -0.5 4])
xlabel('$x$','interpreter','latex')
ylabel('$E_1(x)$','interpreter','latex')
title('Exponential Integral','interpreter','latex')

Figure contains an axes object. The axes object with title Exponential Integral, xlabel $x$, ylabel E indexOf 1 baseline leftParenthesis x rightParenthesis contains an object of type line.

Input Arguments

collapse all

Input array, specified as a scalar, vector, matrix, or multidimensional array.

Data Types: single | double
Complex Number Support: Yes

More About

collapse all

References

[1] Abramowitz, M. and I. A. Stegun. Handbook of Mathematical Functions. Chapter 5, New York: Dover Publications, 1965.

Extended Capabilities

expand all

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced before R2006a

See Also

|