Skip to content

Commit 1d1d0f9

Browse files
Sumegh-gitsimonbyrne
authored andcommitted
Add Incomplete Beta Function ratios Ix(a,b) and Iy(a,b) (#165)
1 parent 0e53506 commit 1d1d0f9

File tree

5 files changed

+873
-0
lines changed

5 files changed

+873
-0
lines changed

docs/src/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ libraries.
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`) |
2222
| [`gamma_inc(a,x,IND)`](@ref SpecialFunctions.gamma_inc) | [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)) |
23+
| [`beta_inc(a,b,x,y)`](@ref SpecialFunctions.beta_inc) | [incomplete beta function ratio Ix(a,b) and Iy(a,b)](https://en.wikipedia.org/wiki/Beta_function#Incomplete_beta_function) (i.e evaluates Ix(a,b) and Iy(a,b) and returns tuple (p,q)) |
2324
| [`gamma_inc_inv(a,p,q)`](@ref SpecialFunctions.gamma_inc_inv) | [inverse of incomplete gamma function ratio P(a,x) and Q(a,x)](https://en.wikipedia.org/wiki/Incomplete_gamma_function) (i.e evaluates x given P(a,x)=p and Q(a,x)=q |
2425
| [`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`) |
2526
| [`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`) |

docs/src/special.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ SpecialFunctions.zeta
5151
SpecialFunctions.gamma
5252
SpecialFunctions.gamma_inc
5353
SpecialFunctions.gamma_inc_inv
54+
SpecialFunctions.beta_inc
5455
SpecialFunctions.loggamma
5556
SpecialFunctions.logabsgamma
5657
SpecialFunctions.logfactorial

src/SpecialFunctions.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export
4848
polygamma,
4949
trigamma,
5050
gamma_inc,
51+
beta_inc,
5152
gamma_inc_inv,
5253
hankelh1,
5354
hankelh1x,
@@ -64,6 +65,7 @@ include("ellip.jl")
6465
include("sincosint.jl")
6566
include("gamma.jl")
6667
include("gamma_inc.jl")
68+
include("beta_inc.jl")
6769
include("deprecated.jl")
6870

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

0 commit comments

Comments
 (0)