A calculator is typically a portable electronic device used to perform calculations, ranging from basic arithmetic to complex mathematics. In addition to general-purpose calculators, there are those designed for specific markets. For example, there are scientific calculators, which include trigonometric and statistical calculations. Some calculators even have the ability to do computer algebra.