"eval" command


Check and evaluate an expression.


eval expression


The eval command evaluates an expression and prints the result as a number.


gnucap> param a={b+c+7}
gnucap> eval a
parameter b+c+7 has no value
parameter b+c+7 has no value
a= NA
gnucap> param b=c+3
gnucap> param c=4
gnucap> eval a
a= 18.
gnucap> eval b+c
(b + c)= 11.
gnucap/manual/commands/eval.txt · Last modified: 2009/02/28 23:25 by aldavis
Except where otherwise noted, content on this wiki is licensed under the following license:Public Domain
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Run by Debian Driven by DokuWiki