You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/index.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,11 +46,13 @@ libraries.
46
46
|[`besselk(nu,z)`](@ref SpecialFunctions.besselk) | modified [Bessel function](https://en.wikipedia.org/wiki/Bessel_function) of the second kind of order `nu` at `z`|
47
47
|[`besselkx(nu,z)`](@ref SpecialFunctions.besselkx) | scaled modified Bessel function of the second kind of order `nu` at `z`|
48
48
|[`gamma(x)`](@ref SpecialFunctions.gamma) |[gamma function](https://en.wikipedia.org/wiki/Gamma_function) at `x`|
49
+
|[`loggamma(x)`](@ref SpecialFunctions.loggamma) | accurate `log(gamma(x))` for large `x`|
50
+
|[`logabsgamma(x)`](@ref SpecialFunctions.logabsgamma) | accurate `log(abs(gamma(x)))` for large `x`|
49
51
|[`lgamma(x)`](@ref SpecialFunctions.lgamma) | accurate `log(gamma(x))` for large `x`|
50
52
|[`lfactorial(x)`](@ref SpecialFunctions.lfactorial) | accurate `log(factorial(x))` for large `x`; same as `lgamma(x+1)` for `x > 1`, zero otherwise |
51
53
|[`beta(x,y)`](@ref SpecialFunctions.beta) |[beta function](https://en.wikipedia.org/wiki/Beta_function) at `x,y`|
52
-
|[`lbeta(x,y)`](@ref SpecialFunctions.lbeta) | accurate `log(beta(x,y))` for large `x` or `y`|
53
-
54
+
|[`logbeta(x,y)`](@ref SpecialFunctions.logbeta) | accurate `log(beta(x,y))` for large `x` or `y`|
55
+
|[`logabsbeta(x,y)`](@ref SpecialFunctions.logabsbeta) | accurate `log(abs(beta(x,y)))` for large `x` or `y`|
54
56
## Installation
55
57
56
58
The package is available for Julia versions 0.5 and up. To install it, run
Returns a tuple of the natural logarithm of the absolute value of the [`beta`](@ref) function ``\\log(|\\operatorname{B}(x,y)|)`` and sign of the [`beta`](@ref) function .
744
+
"""
745
+
functionlogabsbeta(x::Real, w::Real)
746
+
yx, sx =logabsgamma(x)
747
+
yw, sw =logabsgamma(w)
748
+
yxw, sxw =logabsgamma(x+w)
749
+
(yx + yw - yxw), (sx*sw*sxw)
750
+
end
722
751
## from base/mpfr.jl
723
752
724
753
# Functions for which NaN results are converted to DomainError, following Base
0 commit comments