Another alternative if you're using bash (which you probably are) is something simple like
function calc() { echo $[$*]; }
Note, you can't have spaces in your expression, but that's not a big deal. use it like "calc 2*3**4" (note ** is the exponential operator, you can man bash for the others.)
*link removed*. Site Pimping is not allowed.
- RH