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