Mercurial > octave-nkf
comparison doc/interpreter/stmt.txi @ 18851:9ac2357f19bc
doc: Replace "non-zero" with "nonzero" to match existing usage.
Replace all occurrences in both documentation and code comments.
* doc/interpreter/contrib.txi, doc/interpreter/diagperm.txi,
doc/interpreter/external.txi, doc/interpreter/sparse.txi,
doc/interpreter/stmt.txi, doc/interpreter/testfun.txi, doc/refcard/refcard.tex,
examples/mysparse.c, libinterp/corefcn/balance.cc,
libinterp/corefcn/cellfun.cc, libinterp/corefcn/data.cc,
libinterp/corefcn/filter.cc, libinterp/corefcn/find.cc,
libinterp/corefcn/kron.cc, libinterp/corefcn/ls-mat5.cc,
libinterp/corefcn/luinc.cc, libinterp/corefcn/mappers.cc,
libinterp/corefcn/oct-fstrm.cc, libinterp/corefcn/oct-fstrm.h,
libinterp/corefcn/oct-iostrm.cc, libinterp/corefcn/oct-iostrm.h,
libinterp/corefcn/oct-stdstrm.h, libinterp/corefcn/oct-strstrm.h,
libinterp/corefcn/spparms.cc, libinterp/corefcn/toplev.cc,
libinterp/corefcn/utils.cc, libinterp/dldfcn/symrcm.cc,
libinterp/octave-value/ov-bool-mat.cc, liboctave/array/CSparse.cc,
liboctave/array/Sparse.cc, liboctave/array/Sparse.h,
liboctave/array/dSparse.cc, liboctave/numeric/randmtzig.c,
liboctave/operators/Sparse-op-defs.h, scripts/help/get_first_help_sentence.m,
scripts/miscellaneous/edit.m, scripts/plot/draw/pie.m,
scripts/plot/draw/pie3.m, scripts/sparse/colperm.m, scripts/sparse/nonzeros.m,
scripts/sparse/spdiags.m, scripts/sparse/spfun.m, scripts/sparse/spones.m,
scripts/sparse/sprand.m, scripts/sparse/sprandn.m, scripts/sparse/sprandsym.m,
scripts/sparse/spstats.m, scripts/sparse/svds.m,
scripts/special-matrix/gallery.m, scripts/statistics/base/moment.m,
scripts/statistics/tests/cor_test.m:
Replace "non-zero" with "nonzero" to match existing usage.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 08 Jun 2014 17:59:59 -0700 |
parents | faf32a725693 |
children | 0e1f5a750d00 |
comparison
equal
deleted
inserted
replaced
18850:c53e11fab75f | 18851:9ac2357f19bc |
---|---|
81 @var{condition} is an expression that controls what the rest of the | 81 @var{condition} is an expression that controls what the rest of the |
82 statement will do. The @var{then-body} is executed only if | 82 statement will do. The @var{then-body} is executed only if |
83 @var{condition} is true. | 83 @var{condition} is true. |
84 | 84 |
85 The condition in an @code{if} statement is considered true if its value | 85 The condition in an @code{if} statement is considered true if its value |
86 is non-zero, and false if its value is zero. If the value of the | 86 is nonzero, and false if its value is zero. If the value of the |
87 conditional expression in an @code{if} statement is a vector or a | 87 conditional expression in an @code{if} statement is a vector or a |
88 matrix, it is considered true only if it is non-empty and @emph{all} | 88 matrix, it is considered true only if it is non-empty and @emph{all} |
89 of the elements are non-zero. | 89 of the elements are nonzero. |
90 | 90 |
91 The second form of an if statement looks like this: | 91 The second form of an if statement looks like this: |
92 | 92 |
93 @example | 93 @example |
94 @group | 94 @group |
396 be) executed two or more times in succession. | 396 be) executed two or more times in succession. |
397 | 397 |
398 The @code{while} statement is the simplest looping statement in Octave. | 398 The @code{while} statement is the simplest looping statement in Octave. |
399 It repeatedly executes a statement as long as a condition is true. As | 399 It repeatedly executes a statement as long as a condition is true. As |
400 with the condition in an @code{if} statement, the condition in a | 400 with the condition in an @code{if} statement, the condition in a |
401 @code{while} statement is considered true if its value is non-zero, and | 401 @code{while} statement is considered true if its value is nonzero, and |
402 false if its value is zero. If the value of the conditional expression | 402 false if its value is zero. If the value of the conditional expression |
403 in a @code{while} statement is a vector or a matrix, it is considered | 403 in a @code{while} statement is a vector or a matrix, it is considered |
404 true only if it is non-empty and @emph{all} of the elements are non-zero. | 404 true only if it is non-empty and @emph{all} of the elements are nonzero. |
405 | 405 |
406 Octave's @code{while} statement looks like this: | 406 Octave's @code{while} statement looks like this: |
407 | 407 |
408 @example | 408 @example |
409 @group | 409 @group |
461 The @code{do-until} statement is similar to the @code{while} statement, | 461 The @code{do-until} statement is similar to the @code{while} statement, |
462 except that it repeatedly executes a statement until a condition becomes | 462 except that it repeatedly executes a statement until a condition becomes |
463 true, and the test of the condition is at the end of the loop, so the | 463 true, and the test of the condition is at the end of the loop, so the |
464 body of the loop is always executed at least once. As with the | 464 body of the loop is always executed at least once. As with the |
465 condition in an @code{if} statement, the condition in a @code{do-until} | 465 condition in an @code{if} statement, the condition in a @code{do-until} |
466 statement is considered true if its value is non-zero, and false if its | 466 statement is considered true if its value is nonzero, and false if its |
467 value is zero. If the value of the conditional expression in a | 467 value is zero. If the value of the conditional expression in a |
468 @code{do-until} statement is a vector or a matrix, it is considered | 468 @code{do-until} statement is a vector or a matrix, it is considered |
469 true only if it is non-empty and @emph{all} of the elements are non-zero. | 469 true only if it is non-empty and @emph{all} of the elements are nonzero. |
470 | 470 |
471 Octave's @code{do-until} statement looks like this: | 471 Octave's @code{do-until} statement looks like this: |
472 | 472 |
473 @example | 473 @example |
474 @group | 474 @group |