Mercurial > hg > octave-nkf
annotate scripts/miscellaneous/ans.m @ 15536:2e8eb9ac43a5 stable rc-3-6-4-0
3.6.4-rc0 release candidate
* configure.ac (AC_INIT): Version is now 3.6.2-rc0.
(OCTAVE_RELEASE_DATE): Now 2012-05-11.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 17 Oct 2012 10:05:44 -0400 |
parents | 72c96de7a403 |
children | f3d52523cde1 |
rev | line source |
---|---|
14138
72c96de7a403
maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents:
12794
diff
changeset
|
1 ## Copyright (C) 2006-2012 John W. Eaton |
7016 | 2 ## |
3 ## This file is part of Octave. | |
4 ## | |
5 ## Octave is free software; you can redistribute it and/or modify it | |
6 ## under the terms of the GNU General Public License as published by | |
7 ## the Free Software Foundation; either version 3 of the License, or (at | |
8 ## your option) any later version. | |
9 ## | |
10 ## Octave is distributed in the hope that it will be useful, but | |
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 ## General Public License for more details. | |
14 ## | |
15 ## You should have received a copy of the GNU General Public License | |
16 ## along with Octave; see the file COPYING. If not, see | |
17 ## <http://www.gnu.org/licenses/>. | |
18 | |
5799 | 19 ## -*- texinfo -*- |
20 ## @defvr {Automatic Variable} ans | |
7001 | 21 ## The most recently computed result that was not |
5799 | 22 ## explicitly assigned to a variable. For example, after the expression |
11587
c792872f8942
all script files: untabify and strip trailing whitespace
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
23 ## |
5799 | 24 ## @example |
25 ## 3^2 + 4^2 | |
26 ## @end example | |
11587
c792872f8942
all script files: untabify and strip trailing whitespace
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
27 ## |
5799 | 28 ## @noindent |
29 ## is evaluated, the value returned by @code{ans} is 25. | |
30 ## @end defvr | |
12794
dd8a2a448788
codesprint: Add trivial assert(1) test to documentation-only .m files.
Rik <octave@nomad.inbox5.com>
parents:
11587
diff
changeset
|
31 |
dd8a2a448788
codesprint: Add trivial assert(1) test to documentation-only .m files.
Rik <octave@nomad.inbox5.com>
parents:
11587
diff
changeset
|
32 ## Mark file as being tested. No real test needed for a documentation .m file |
dd8a2a448788
codesprint: Add trivial assert(1) test to documentation-only .m files.
Rik <octave@nomad.inbox5.com>
parents:
11587
diff
changeset
|
33 %!assert (1) |
dd8a2a448788
codesprint: Add trivial assert(1) test to documentation-only .m files.
Rik <octave@nomad.inbox5.com>
parents:
11587
diff
changeset
|
34 |