Mercurial > octave
changeset 24939:5f4550b5d31b stable
gammainc.m: Fix incorrect documentation.
* gammainc.m: Replace "divided" by "multiplied" in discussion of "scaledupper"
argument for tail.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 20 Mar 2018 09:02:43 -0700 |
parents | 4f1da669b610 |
children | 7edf1fb1d4b2 |
files | scripts/specfun/gammainc.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/specfun/gammainc.m Mon Mar 19 20:20:25 2018 -0700 +++ b/scripts/specfun/gammainc.m Tue Mar 20 09:02:43 2018 -0700 @@ -68,7 +68,7 @@ ## @math{gamma(a+1)*exp(x)/(x^a)}. ## @end ifnottex ## If @var{tail} is @qcode{"scaledupper"}, then the upper incomplete gamma -## function is divided by the same quantity. +## function is multiplied by the same quantity. ## ## References: ## @@ -242,7 +242,7 @@ ## x == 0, a == 0. function y = gammainc_00 (tail) - if ((strcmp (tail, "upper")) || (strcmp (tail, "scaledupper"))) + if (strcmp (tail, "upper") || strcmp (tail, "scaledupper")) y = 0; else y = 1;