|
|
◆ En_sub()
| Sub En_sub |
( |
Ret As |
Double, |
|
|
X As |
Double, |
|
|
N As |
Long, |
|
|
Optional Info As |
Long |
|
) |
| |
Exponential integral En(x) (Subroutine version)
- Purpose
- Computes the exponential integral En(x).
En(x) = ∫ exp(-xt)/t^n dt [1, ∞]
Function En(X As Double, N As Long, Optional Info As Long) As Double Exponential integral En(x)
- Parameters
-
| [out] | Ret | Exponential integral En(x). |
| [in] | X | Argument x. (X >= 0) |
| [in] | N | Argument n. (N >= 0) |
| [out] | Info | = 0: Successful exit.
= -1: The argument X had an illegal value. (X < 0)
= -2: The argument N had an illegal value. (N < 0)
= 1: Floating point range error. |
- Reference
- boost/math/special_functions
|