Exponential integral .
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | x |
real(wp) function ei(x) !! Exponential integral \(\mathrm{Ei}(x)\). ! !! \(\lbrace x \in \mathbb{R} \mid x \neq 0 \rbrace\) real(wp), intent(in) :: x if (x == 0.0_wp) then ei = ninf() else if (x < -738.0_wp) then ei = 0.0_wp else if (x <= 709.0_wp) then ei = dei(x) else ei = pinf() end if end function ei