mirror of
https://github.com/dlang/phobos.git
synced 2025-04-26 21:22:20 +03:00
Inverse of the Log Minus Digamma function
fix test fix unittest add crosreferences
This commit is contained in:
parent
9d4f5ef889
commit
9b86eebed5
2 changed files with 76 additions and 0 deletions
|
@ -168,6 +168,8 @@ unittest {
|
|||
* The digamma function is the logarithmic derivative of the gamma function.
|
||||
*
|
||||
* digamma(x) = d/dx logGamma(x)
|
||||
*
|
||||
* See_Also: $(LREF logmdigamma), $(LREF logmdigammaInverse).
|
||||
*/
|
||||
real digamma(real x)
|
||||
{
|
||||
|
@ -177,12 +179,25 @@ real digamma(real x)
|
|||
/** Log Minus Digamma function
|
||||
*
|
||||
* logmdigamma(x) = log(x) - digamma(x)
|
||||
*
|
||||
* See_Also: $(LREF digamma), $(LREF logmdigammaInverse).
|
||||
*/
|
||||
real logmdigamma(real x)
|
||||
{
|
||||
return std.internal.math.gammafunction.logmdigamma(x);
|
||||
}
|
||||
|
||||
/** Inverse of the Log Minus Digamma function
|
||||
*
|
||||
* Given y, the function finds x such log(x) - digamma(x) = y.
|
||||
*
|
||||
* See_Also: $(LREF logmdigamma), $(LREF digamma).
|
||||
*/
|
||||
real logmdigammaInverse(real x)
|
||||
{
|
||||
return std.internal.math.gammafunction.logmdigammaInverse(x);
|
||||
}
|
||||
|
||||
/** Incomplete beta integral
|
||||
*
|
||||
* Returns incomplete beta integral of the arguments, evaluated
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue