It was the first mechanical calculator that could perform all four arithmetic operations--addition, subtraction, multiplication, and division. It was invented around 1672 and completed in 1694 by Gottfried Wilhelm Leibniz, a German mathematician and philosopher.