Up to the end of 2013 I've created my own Calculator in minecraft (modpack tekkit) only working with logical gates, like or-, xor-, and- or not-gates.
It is finally able to calculate number inputs from -4999 up to 4999 and give the out from -9998 to 9998 after doing operations like addition, subtraction, calculation of sin(x) and cos(x), multiplication and square a number.
If you wanna have a map download of the Calculators just follow these links:
You can see the video of the latest Version V. aPm 4.3.1 here:
And also an older version V. aPm 2.3.1: