Mercurial > hg > octave-nkf
diff 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 |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/scripts/miscellaneous/ans.m @@ -0,0 +1,17 @@ +## -*- texinfo -*- +## @defvr {Automatic Variable} ans +## The the most recently computed result that was not +## explicitly assigned to a variable. For example, after the expression +## +## @example +## 3^2 + 4^2 +## @end example +## +## @noindent +## is evaluated, the value returned by @code{ans} is 25. +## @end defvr + +## FIXME -- we should be able to get formatted help for empty scripts, +## not just functions. +function ans () +endfunction