annotate scripts/miscellaneous/ans.m @ 7017:a1dbe9d80eee

[project @ 2007-10-12 21:27:11 by jwe]
author jwe
date Fri, 12 Oct 2007 21:27:37 +0000
parents 93c65f2a5668
children fd0a3ac60b0e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7017
a1dbe9d80eee [project @ 2007-10-12 21:27:11 by jwe]
jwe
parents: 7016
diff changeset
1 ## Copyright (C) 2006, 2007 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
7001
8b0cfeb06365 [project @ 2007-10-10 18:02:59 by jwe]
jwe
parents: 5931
diff changeset
21 ## The most recently computed result that was not
5799
9ad09b44beba [project @ 2006-05-09 17:30:57 by jwe]
jwe
parents:
diff changeset
22 ## explicitly assigned to a variable. For example, after the expression
9ad09b44beba [project @ 2006-05-09 17:30:57 by jwe]
jwe
parents:
diff changeset
23 ##
9ad09b44beba [project @ 2006-05-09 17:30:57 by jwe]
jwe
parents:
diff changeset
24 ## @example
9ad09b44beba [project @ 2006-05-09 17:30:57 by jwe]
jwe
parents:
diff changeset
25 ## 3^2 + 4^2
9ad09b44beba [project @ 2006-05-09 17:30:57 by jwe]
jwe
parents:
diff changeset
26 ## @end example
9ad09b44beba [project @ 2006-05-09 17:30:57 by jwe]
jwe
parents:
diff changeset
27 ##
9ad09b44beba [project @ 2006-05-09 17:30:57 by jwe]
jwe
parents:
diff changeset
28 ## @noindent
9ad09b44beba [project @ 2006-05-09 17:30:57 by jwe]
jwe
parents:
diff changeset
29 ## is evaluated, the value returned by @code{ans} is 25.
9ad09b44beba [project @ 2006-05-09 17:30:57 by jwe]
jwe
parents:
diff changeset
30 ## @end defvr