nerdamer.Ei(x: Expression): Expression
Computes the exponential integral: Ei(x) = −∫₋ₓ^∞ e^(−t)/t dt (Cauchy principal value).
- Ei(+∞) = +∞, Ei(−∞) = 0
- Ei(0) = −∞
Parameters
| Name | Type | Description |
|---|
x | Expression | The input expression. |
Returns
Expression — The exponential integral value.
Examples
Ei(Expression.create(0)).text() // "-Infinity"
Ei(Expression.create('x')).text() // "Ei(x)"