Here can be found the most comprehensive math library
that emulates pen and paper calculations and allows working with
bigger numbers.
Here are another examples of pen and paper emulations: ADD ,
Comparison , Multiply
Some math functions implementations can be found here.