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:
Karl Broman 2012-05-21 06:10:34 -05:00
parent d83f9cbdaf
commit 320c92d355
2 changed files with 6 additions and 6 deletions

View file

@ -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.
*

View file

@ -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);
}