mirror of
https://github.com/dlang/phobos.git
synced 2025-04-26 21:22:20 +03:00
Change second paramater of gammaIncompleteComplInverse from x to p
- more meaningful for it to be p rather than x - also, this matches the corresponding internal function in std.internal.math.gammafunction - revise comments to match
This commit is contained in:
parent
d83f9cbdaf
commit
320c92d355
2 changed files with 6 additions and 6 deletions
|
@ -1159,7 +1159,7 @@ body {
|
|||
|
||||
/** Inverse of complemented incomplete gamma integral
|
||||
*
|
||||
* Given a and y, the function finds x such that
|
||||
* Given a and p, the function finds x such that
|
||||
*
|
||||
* gammaIncompleteCompl( a, x ) = p.
|
||||
*
|
||||
|
|
|
@ -242,17 +242,17 @@ body {
|
|||
|
||||
/** Inverse of complemented incomplete gamma integral
|
||||
*
|
||||
* Given a and x, the function finds y such that
|
||||
* Given a and p, the function finds x such that
|
||||
*
|
||||
* gammaIncompleteCompl( a, y ) = x.
|
||||
* gammaIncompleteCompl( a, x ) = p.
|
||||
*/
|
||||
real gammaIncompleteComplInverse(real a, real x)
|
||||
real gammaIncompleteComplInverse(real a, real p)
|
||||
in {
|
||||
assert(x >= 0 && x <= 1);
|
||||
assert(p >= 0 && p <= 1);
|
||||
assert(a > 0);
|
||||
}
|
||||
body {
|
||||
return std.internal.math.gammafunction.gammaIncompleteComplInv(a, x);
|
||||
return std.internal.math.gammafunction.gammaIncompleteComplInv(a, p);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue