annotate scripts/miscellaneous/ans.m @ 20654:b65888ec820e draft default tip gccjit

dmalcom gcc jit import
author Stefan Mahr <dac922@gmx.de>
date Fri, 27 Feb 2015 16:59:36 +0100
parents 4197fc428c7d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19731
4197fc428c7d maint: Update copyright notices for 2015.
John W. Eaton <jwe@octave.org>
parents: 19226
diff changeset
1 ## Copyright (C) 2006-2015 John W. Eaton
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7001
diff changeset
2 ##
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7001
diff changeset
3 ## This file is part of Octave.
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7001
diff changeset
4 ##
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7001
diff changeset
5 ## Octave is free software; you can redistribute it and/or modify it
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7001
diff changeset
6 ## under the terms of the GNU General Public License as published by
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7001
diff changeset
7 ## the Free Software Foundation; either version 3 of the License, or (at
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7001
diff changeset
8 ## your option) any later version.
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7001
diff changeset
9 ##
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7001
diff changeset
10 ## Octave is distributed in the hope that it will be useful, but
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7001
diff changeset
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7001
diff changeset
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7001
diff changeset
13 ## General Public License for more details.
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7001
diff changeset
14 ##
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7001
diff changeset
15 ## You should have received a copy of the GNU General Public License
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7001
diff changeset
16 ## along with Octave; see the file COPYING. If not, see
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7001
diff changeset
17 ## <http://www.gnu.org/licenses/>.
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7001
diff changeset
18
5799
9ad09b44beba [project @ 2006-05-09 17:30:57 by jwe]
jwe
parents:
diff changeset
19 ## -*- texinfo -*-
9ad09b44beba [project @ 2006-05-09 17:30:57 by jwe]
jwe
parents:
diff changeset
20 ## @defvr {Automatic Variable} ans
19226
8a8a7bc2a09d Improve docstrings and mark documentation m-files as tested in miscellaneous/ dir.
Rik <rik@octave.org>
parents: 17744
diff changeset
21 ## The most recently computed result that was not explicitly assigned to a
8a8a7bc2a09d Improve docstrings and mark documentation m-files as tested in miscellaneous/ dir.
Rik <rik@octave.org>
parents: 17744
diff changeset
22 ## variable.
8a8a7bc2a09d Improve docstrings and mark documentation m-files as tested in miscellaneous/ dir.
Rik <rik@octave.org>
parents: 17744
diff changeset
23 ##
8a8a7bc2a09d Improve docstrings and mark documentation m-files as tested in miscellaneous/ dir.
Rik <rik@octave.org>
parents: 17744
diff changeset
24 ## 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
25 ##
5799
9ad09b44beba [project @ 2006-05-09 17:30:57 by jwe]
jwe
parents:
diff changeset
26 ## @example
9ad09b44beba [project @ 2006-05-09 17:30:57 by jwe]
jwe
parents:
diff changeset
27 ## 3^2 + 4^2
9ad09b44beba [project @ 2006-05-09 17:30:57 by jwe]
jwe
parents:
diff changeset
28 ## @end example
11587
c792872f8942 all script files: untabify and strip trailing whitespace
John W. Eaton <jwe@octave.org>
parents: 11523
diff changeset
29 ##
5799
9ad09b44beba [project @ 2006-05-09 17:30:57 by jwe]
jwe
parents:
diff changeset
30 ## @noindent
9ad09b44beba [project @ 2006-05-09 17:30:57 by jwe]
jwe
parents:
diff changeset
31 ## is evaluated, the value returned by @code{ans} is 25.
9ad09b44beba [project @ 2006-05-09 17:30:57 by jwe]
jwe
parents:
diff changeset
32 ## @end defvr
12794
dd8a2a448788 codesprint: Add trivial assert(1) test to documentation-only .m files.
Rik <octave@nomad.inbox5.com>
parents: 11587
diff changeset
33
14363
f3d52523cde1 Use Octave coding conventions in all m-file %!test blocks
Rik <octave@nomad.inbox5.com>
parents: 14138
diff changeset
34
12794
dd8a2a448788 codesprint: Add trivial assert(1) test to documentation-only .m files.
Rik <octave@nomad.inbox5.com>
parents: 11587
diff changeset
35 ## 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
36 %!assert (1)
dd8a2a448788 codesprint: Add trivial assert(1) test to documentation-only .m files.
Rik <octave@nomad.inbox5.com>
parents: 11587
diff changeset
37