**Syntax:**`expr`*Sequence of Words*-
- Arguments of
`expr`are concatenated and evaluated as an algebraic expression. - C-like expressions with extra support for strings.
- Command, variable substitution occurs within expressions.
- Used in some other commands besides
`expr`.

- Arguments of
**Examples:**-
`set b 5`-

`5` `expr ($b*4) - 3`-

`17` `expr $b <= 2`-

`0` `expr $a * cos(2*$b)`-

`-5.03443`

CS488/688: Introduction to Interactive Computer Graphics

University of Waterloo

Computer Graphics Lab