Skip to content

Commit 6ae552f

Browse files
authored
Exponential integral function (#236)
* Add some things * Test against sympy * Add more tests * Use alternate continued fraction * precision agnotistic checks * more tests * some progress * large real nu seems to work * remove polynomials dep * function aliases * don't need type parameter here * function names, complex tests * small fix * minimax approximation * handle ArgumentError in tests * Add to docs * handle osx test * test large positive integer nu * oops
1 parent 1bb0913 commit 6ae552f

File tree

7 files changed

+550
-3
lines changed

7 files changed

+550
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ version = "0.10.3"
66
OpenSpecFun_jll = "efe28fd5-8261-553b-a9e1-b2916fc3738e"
77

88
[compat]
9-
julia = "1.3"
109
OpenSpecFun_jll = "0.5.3"
10+
julia = "1.3"
1111

1212
[extras]
1313
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

docs/src/functions_list.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,5 @@ SpecialFunctions.beta
6363
SpecialFunctions.logbeta
6464
SpecialFunctions.logabsbeta
6565
SpecialFunctions.logabsbinomial
66+
SpecialFunctions.expint
6667
```

docs/src/functions_overview.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ Here the *Special Functions* are listed according to the structure of [NIST Digi
2323
| [`logabsbinomial(x,y)`](@ref SpecialFunctions.logabsbinomial) | accurate `log(abs(binomial(n,k)))` for large `n` and `k` near `n/2` |
2424

2525

26-
## [Trigonometric Integrals](https://dlmf.nist.gov/6)
26+
## [Exponential and Trigonometric Integrals](https://dlmf.nist.gov/6)
2727
| Function | Description |
2828
|:-------- |:----------- |
29+
| [`expint(nu, z)`](@ref SpecialFunctions.expint) | [exponential integral](https://en.wikipedia.org/wiki/Exponential_integral) ``E_\nu(z)`` |
2930
| [`sinint(x)`](@ref SpecialFunctions.sinint) | [sine integral](https://en.wikipedia.org/wiki/Trigonometric_integral#Sine_integral) ``Si(x)`` |
3031
| [`cosint(x)`](@ref SpecialFunctions.cosint) | [cosine integral](https://en.wikipedia.org/wiki/Trigonometric_integral#Cosine_integral) ``Ci(x)`` |
3132

src/SpecialFunctions.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,13 @@ export
5757
zeta,
5858
sinint,
5959
cosint,
60-
lbinomial
60+
lbinomial,
61+
expint
6162

6263
include("bessel.jl")
6364
include("erf.jl")
6465
include("ellip.jl")
66+
include("expint.jl")
6567
include("sincosint.jl")
6668
include("gamma.jl")
6769
include("gamma_inc.jl")

0 commit comments

Comments
 (0)