Mercurial > hg > octave-lyh
diff scripts/specfun/nthroot.m @ 11472:1740012184f9
Use uppercase for variable names in error() strings to match Info documentation. Only m-files done.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 09 Jan 2011 21:33:04 -0800 |
parents | 693e22af08ae |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- a/scripts/specfun/nthroot.m +++ b/scripts/specfun/nthroot.m @@ -47,7 +47,7 @@ endif if (! isscalar (n)) - error ("nthroot: n must be a nonzero scalar"); + error ("nthroot: N must be a nonzero scalar"); endif if (n == 3) @@ -61,7 +61,7 @@ if (n == round (n) && mod (n, 2) == 1) y = abs (x) .^ (1/n) .* sign (x); elseif (any (x(:) < 0)) - error ("nthroot: if x contains negative values, n must be an odd integer"); + error ("nthroot: if X contains negative values, N must be an odd integer"); else y = x .^ (1/n); endif