Skip to main content

expi

Function expi 

Source
pub fn expi<T: ExpIntArg>(z: T) -> T
Expand description

Exponential integral $Ei$ for real or complex input

Corresponds to scipy.special.expi

§Definition

For real $x$, the exponential integral is defined as

$$ Ei(x) = \int_{-\infty}^x \frac{e^t}{t} \dd t $$

For $x > 0$ the integral is understood as a Cauchy principal value.

It is extended to the complex plane by analytic continuation of the function on the interval $(0, \infty)$. The complex variant has a branch cut on the negative real axis.

§See also

  • exp1: exponential integral $E_1$
  • expn: generalization of $E_1$