Skip to content

Commit 82aea4a

Browse files
Sumegh-gitsimonbyrne
authored andcommitted
Added incomplete gamma function ratios P(a,x) and Q(a,x) (#146)
1 parent 8136181 commit 82aea4a

File tree

5 files changed

+656
-1
lines changed

5 files changed

+656
-1
lines changed

docs/src/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ libraries.
1919
| [`invdigamma(x)`](@ref SpecialFunctions.invdigamma) | [invdigamma function](http://bariskurt.com/calculating-the-inverse-of-digamma-function/) (i.e. inverse of `digamma` function at `x` using fixed-point iteration algorithm) |
2020
| [`trigamma(x)`](@ref SpecialFunctions.trigamma) | [trigamma function](https://en.wikipedia.org/wiki/Trigamma_function) (i.e the logarithmic second derivative of `gamma` at `x`) |
2121
| [`polygamma(m,x)`](@ref SpecialFunctions.polygamma) | [polygamma function](https://en.wikipedia.org/wiki/Polygamma_function) (i.e the (m+1)-th derivative of the `lgamma` function at `x`) |
22+
| [`gamma_inc(a,x,IND)`](@ref SpecialFunctions.gamma_p) | [incomplete gamma function ratio P(a,x) and Q(a,x)](https://en.wikipedia.org/wiki/Incomplete_gamma_function) (i.e evaluates P(a,x) and Q(a,x)for accuracy specified by IND and returns tuple (p,q)) |
2223
| [`ellipk(x)`](@ref SpecialFunctions.ellipk) | [complete elliptic integral of 1st kind](https://en.wikipedia.org/wiki/Elliptic_integral) (i.e evaluates complete elliptic integral of 1st kind at `x`) |
2324
| [`ellipe(x)`](@ref SpecialFunctions.ellipe) | [complete elliptic integral of 2nd kind](https://en.wikipedia.org/wiki/Elliptic_integral) (i.e evaluates complete elliptic integral of 2nd kind at `x`) |
2425
| [`eta(x)`](@ref SpecialFunctions.eta) | [Dirichlet eta function](https://en.wikipedia.org/wiki/Dirichlet_eta_function) at `x` |

docs/src/special.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ SpecialFunctions.ellipe
4949
SpecialFunctions.eta
5050
SpecialFunctions.zeta
5151
SpecialFunctions.gamma
52+
SpecialFunctions.gamma_inc
5253
SpecialFunctions.loggamma
5354
SpecialFunctions.logabsgamma
5455
SpecialFunctions.logfactorial

src/SpecialFunctions.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ let depsjl_path = joinpath(@__DIR__, "..", "deps", "deps.jl")
1010
end
1111

1212
__init__() = check_deps()
13-
1413
export
1514
airyai,
1615
airyaiprime,
@@ -48,6 +47,7 @@ export
4847
invdigamma,
4948
polygamma,
5049
trigamma,
50+
gamma_inc,
5151
hankelh1,
5252
hankelh1x,
5353
hankelh2,
@@ -62,6 +62,7 @@ include("erf.jl")
6262
include("ellip.jl")
6363
include("sincosint.jl")
6464
include("gamma.jl")
65+
include("gamma_inc.jl")
6566
include("deprecated.jl")
6667

6768
for f in (:digamma, :erf, :erfc, :erfcinv, :erfcx, :erfi, :erfinv,

0 commit comments

Comments
 (0)