I try to calculate this exponential integral:
$$\int_0^1 \exp(\exp(-s))ds.$$
I obtained different results in Maple:
and Matlab:
Which is correct?
I try to calculate this exponential integral:
$$\int_0^1 \exp(\exp(-s))ds.$$
I obtained different results in Maple:
and Matlab:
Which is correct?
The two apparently different answers are in fact the same.
This is the consequence of the different notations used, with the relationship : $$ei(x)=-Ei(1,-x)$$ The typography in softwares are not exactly standard, respectively : $ei(x)\equiv Ei(x)$ and $Ei(1,x)\equiv E_1(x)$ with reference to: https://en.wikipedia.org/wiki/Exponential_integral and http://mathworld.wolfram.com/ExponentialIntegral.html , equation (3).