home *** CD-ROM | disk | FTP | other *** search
- 3.3.2 Evaluation Statements
- The evaluation statement has the format:
-
- expression
-
- SymbMath evaluates any expression which in a line and gives
- the value of the expression. e.g.
-
- IN: 3 + 4
- OUT: 7 # the value of 3+4
- IN: d(x^6, x)
- OUT: 6 x^5 # the value of d(x^6, x)
- IN: subs(last, x = 1) # evaluate the last output when x = 1.
- OUT: 6
-
- The last output can be saved to a variable for the later use
- by the built-in variable "last", e.g. f:=last.
-