Mercurial > hg > octave-nkf
comparison scripts/miscellaneous/ans.m @ 5799:9ad09b44beba
[project @ 2006-05-09 17:30:57 by jwe]
author | jwe |
---|---|
date | Tue, 09 May 2006 17:31:28 +0000 |
parents | |
children | 25da9a7d5f6d |
comparison
equal
deleted
inserted
replaced
5798:7e7ed81f5566 | 5799:9ad09b44beba |
---|---|
1 ## -*- texinfo -*- | |
2 ## @defvr {Automatic Variable} ans | |
3 ## The the most recently computed result that was not | |
4 ## explicitly assigned to a variable. For example, after the expression | |
5 ## | |
6 ## @example | |
7 ## 3^2 + 4^2 | |
8 ## @end example | |
9 ## | |
10 ## @noindent | |
11 ## is evaluated, the value returned by @code{ans} is 25. | |
12 ## @end defvr | |
13 | |
14 ## FIXME -- we should be able to get formatted help for empty scripts, | |
15 ## not just functions. | |
16 function ans () | |
17 endfunction |