Previous Up Next

9.1.1  Expression evaluation

The eval command is used to evaluate an expression. Since Xcas always evaluates expressions entered in the command line, eval is mainly used to evaluate a sub-expression in the expression editor (see Section 2.9).

Examples

a:=2
     
2           
eval(2+3*a)

or:

2+3*a
     
8           

Previous Up Next