Using smart-phone to do complex arithmetics