Well your question is answered, but consider this:
Most of the linux distros have python preinstalled, so why not use it?
Just type
python
in the terminal and then do all the arithmeticsarithmetic you want, like
2+2
Will output 4 :)
You can also do this directly from terminal with the -c
python argument.
python -c 'print 2+2'