Mercurial > octave
changeset 24934:1db0b81efafe stable
maint: strip trailing whitespace from source files
* __gammainc__.cc, pkg.m hist.m gammainc.m: Strip trailing whitespace.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Mon, 19 Mar 2018 18:27:10 -0700 |
parents | 75a748cb08a6 |
children | c27398f0601c |
files | libinterp/corefcn/__gammainc__.cc scripts/pkg/pkg.m scripts/plot/draw/hist.m scripts/specfun/gammainc.m |
diffstat | 4 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/__gammainc__.cc Mon Mar 19 18:20:53 2018 -0700 +++ b/libinterp/corefcn/__gammainc__.cc Mon Mar 19 18:27:10 2018 -0700 @@ -29,7 +29,7 @@ #include "defun.h" #include "fNDArray.h" -DEFUN (__gammainc__, args, , +DEFUN (__gammainc__, args, , doc: /* -*- texinfo -*- @deftypefn {} {@var{y} =} __gammainc__ (@var{x}, @var{a}) Continued fraction for incomplete gamma function.
--- a/scripts/pkg/pkg.m Mon Mar 19 18:20:53 2018 -0700 +++ b/scripts/pkg/pkg.m Mon Mar 19 18:27:10 2018 -0700 @@ -39,7 +39,7 @@ ## @end example ## ## @noindent -## installs the package found in the file @file{image-1.0.0.tar.gz}. The +## installs the package found in the file @file{image-1.0.0.tar.gz}. The ## file containing the package can be an url, e.g. ## ## @example @@ -48,7 +48,7 @@ ## ## @noindent ## installs the package found in the given url. This -## requires an internet connection and the cURL library. +## requires an internet connection and the cURL library. ## ## @noindent ## @emph{Security risk}: no verification of the package is performed @@ -57,8 +57,8 @@ ## ## @noindent ## @emph{No support}: the GNU Octave community is not responsible for -## packages installed from foreign sites. For support or for -## reporting bugs you need to contact the maintainers of the installed +## packages installed from foreign sites. For support or for +## reporting bugs you need to contact the maintainers of the installed ## package directly (see the @file{DESCRIPTION} file of the package) ## ## The @var{option} variable can contain options that affect the manner @@ -421,7 +421,7 @@ for file_idx = find (external_files_mask) - warning ('Octave:security', + warning ('Octave:security', ['You are installing from an unofficial source.\n' ... 'The GNU Octave community is not responsible' ... ' for the content of this package.\n' ...
--- a/scripts/plot/draw/hist.m Mon Mar 19 18:20:53 2018 -0700 +++ b/scripts/plot/draw/hist.m Mon Mar 19 18:27:10 2018 -0700 @@ -334,7 +334,7 @@ %! hf = figure ("visible", "off"); %! hax = gca; %! unwind_protect -%! fail ("hist (hax, 1, [2 1 0])", "warning", "bin values X not sorted"); +%! fail ("hist (hax, 1, [2 1 0])", "warning", "bin values X not sorted"); %! unwind_protect_cleanup %! close (hf); %! end_unwind_protect
--- a/scripts/specfun/gammainc.m Mon Mar 19 18:20:53 2018 -0700 +++ b/scripts/specfun/gammainc.m Mon Mar 19 18:27:10 2018 -0700 @@ -77,7 +77,7 @@ ## @nospell{Dover publications, Inc.}, 1972. ## ## @nospell{W. Gautschi}, -## @cite{A computational procedure for incomplete gamma functions}, +## @cite{A computational procedure for incomplete gamma functions}, ## @nospell{ACM Trans. Math Software}, pp. 466--481, Vol 5, No. 4, 2012. ## ## @nospell{W. H. Press, S. A. Teukolsky, W. T. Vetterling, and B. P. Flannery}, @@ -100,7 +100,7 @@ error ("gammainc: X and A must be of common size or scalars"); endif - if (iscomplex (x) || iscomplex (a)) + if (iscomplex (x) || iscomplex (a)) error ("gammainc: all inputs must be real"); endif @@ -464,7 +464,7 @@ ## Test: case 8 %!assert (gammainc (-10, 10), 3.112658265341493126871617e7, -2*eps) -## Matlab fails this next one%! %! +## Matlab fails this next one%! %! %!assert (isreal (gammainc (-10, 10)), true) %!assert (gammainc (-10, 10.1, "upper"), ... %! -2.9582761911890713293e7-1i * 9.612022339061679758e6, -30*eps) @@ -473,7 +473,7 @@ %!assert (gammainc (-10, 10, "scaledlower"), 0.5128019364747265, -1e-14); %!assert (gammainc (-10, 10, "scaledupper"), -0.5128019200000000, -1e-14); %!assert (gammainc (200, 201, "upper"), 0.518794309678684497, -2 * eps); -%!assert (gammainc (200, 201, "scaledupper"), +%!assert (gammainc (200, 201, "scaledupper"), %! 18.4904360746560462660798514, -eps) ## Here we are very good (no D (x,a)) involved %!assert (gammainc(1000, 1000.5, "scaledlower"), 39.48467539583672271, -2*eps)