Calculations by Man and Machine: Mathematical Presentation