calc> calc 331 Calculator example (type ? for instructions and . to exit) >> ? Enter an expression in infix notation followed by a newline. Operators include +, -, * and =. Defined functions include sqrt, exp and log. You can assign a variable using the = operator. Type . to exit. Syntax errors will terminate the program, so be careful. >> 100 100 >> 1 + 1 2 >> 1+2*3 7 >> (1+2)*3 9 >> foo 0 >> foo = 100 100 >> bar = 2*foo 200 >> foo == bar 0 >> foo/2 == (50+50)/(1+1) 1 >> a = foo == 100 1 >> a 1 >> -42 -42 >> --42 42 >> 1--42 43 >> 1---42 -41 >> (((((1))))) 1 >> (1+(2)+((3))) 6 >> . Exiting 331 calc