A computer is a
machine that can be programmed to
carry out
"Carry Out" is a song recorded by American producer and rapper Timbaland for his third studio album ''Shock Value II'' (2009). The song features guest vocals from longtime collaborator, American recording artist Justin Timberlake. Timbaland and Ti ...
sequences of
arithmetic
Arithmetic () is an elementary part of mathematics that consists of the study of the properties of the traditional operations on numbers—addition, subtraction, multiplication, division, exponentiation, and extraction of roots. In the 19th c ...
or
logical operations
In logic, a logical connective (also called a logical operator, sentential connective, or sentential operator) is a logical constant. They can be used to connect logical formulas. For instance in the syntax of propositional logic, the binary ...
(
computation
Computation is any type of arithmetic or non-arithmetic calculation that follows a well-defined model (e.g., an algorithm).
Mechanical or electronic devices (or, historically, people) that perform computations are known as '' computers''. An esp ...
) automatically. Modern
digital electronic
Digital electronics is a field of electronics involving the study of digital signals and the engineering of devices that use or produce them. This is in contrast to analog electronics and analog signals.
Digital electronic circuits are usually ...
computers can perform generic sets of operations known as
programs
Program, programme, programmer, or programming may refer to:
Business and management
* Program management, the process of managing several related projects
* Time management
* Program, a part of planning
Arts and entertainment Audio
* Programm ...
. These programs enable computers to perform a wide range of tasks. A computer system is a nominally complete computer that includes the
hardware,
operating system
An operating system (OS) is system software that manages computer hardware, software resources, and provides common daemon (computing), services for computer programs.
Time-sharing operating systems scheduler (computing), schedule tasks for ef ...
(main
software
Software is a set of computer programs and associated software documentation, documentation and data (computing), data. This is in contrast to Computer hardware, hardware, from which the system is built and which actually performs the work.
...
), and
peripheral
A peripheral or peripheral device is an auxiliary device used to put information into and get information out of a computer. The term ''peripheral device'' refers to all hardware components that are attached to a computer and are controlled by th ...
equipment needed and used for full operation. This term may also refer to a group of computers that are linked and function together, such as a
computer network
A computer network is a set of computers sharing resources located on or provided by network nodes. The computers use common communication protocols over digital interconnections to communicate with each other. These interconnections ar ...
or
computer cluster
A computer cluster is a set of computers that work together so that they can be viewed as a single system. Unlike grid computers, computer clusters have each node set to perform the same task, controlled and scheduled by software.
The comp ...
.
A broad range of
industrial and
consumer products
A final good or consumer good is a final product ready for sale that is used by the consumer to satisfy current wants or needs, unlike a intermediate good, which is used to produce other goods. A microwave oven or a bicycle is a final good, but ...
use computers as
control system
A control system manages, commands, directs, or regulates the behavior of other devices or systems using control loops. It can range from a single home heating controller using a thermostat controlling a domestic boiler to large industrial ...
s. Simple special-purpose devices like
microwave oven
A microwave oven (commonly referred to as a microwave) is an electric oven that heats and cooks food by exposing it to electromagnetic radiation in the microwave frequency range. This induces polar molecules in the food to rotate and produce ...
s and
remote control
In electronics, a remote control (also known as a remote or clicker) is an electronic device used to operate another device from a distance, usually wirelessly. In consumer electronics, a remote control can be used to operate devices such as ...
s are included, as are factory devices like
industrial robot
An industrial robot is a robot system used for manufacturing. Industrial robots are automated, programmable and capable of movement on three or more axes.
Typical applications of robots include robot welding, welding, painting, assembly, Circu ...
s and
computer-aided design, as well as general-purpose devices like
personal computer
A personal computer (PC) is a multi-purpose microcomputer whose size, capabilities, and price make it feasible for individual use. Personal computers are intended to be operated directly by an end user, rather than by a computer expert or tech ...
s and
mobile device
A mobile device (or handheld computer) is a computer small enough to hold and operate in the hand. Mobile devices typically have a flat LCD or OLED screen, a touchscreen interface, and digital or physical buttons. They may also have a physical ...
s like
smartphone
A smartphone is a portable computer device that combines mobile telephone and computing functions into one unit. They are distinguished from feature phones by their stronger hardware capabilities and extensive mobile operating systems, whic ...
s. Computers power the
Internet
The Internet (or internet) is the global system of interconnected computer networks that uses the Internet protocol suite (TCP/IP) to communicate between networks and devices. It is a ''internetworking, network of networks'' that consists ...
, which links billions of other computers and users.
Early computers were meant to be used only for calculations. Simple manual instruments like the
abacus
The abacus (''plural'' abaci or abacuses), also called a counting frame, is a calculating tool which has been used since ancient times. It was used in the ancient Near East, Europe, China, and Russia, centuries before the adoption of the H ...
have aided people in doing calculations since ancient times. Early in the
Industrial Revolution
The Industrial Revolution was the transition to new manufacturing processes in Great Britain, continental Europe, and the United States, that occurred during the period from around 1760 to about 1820–1840. This transition included going f ...
, some mechanical devices were built to automate long, tedious tasks, such as guiding patterns for
looms. More sophisticated electrical machines did specialized
analog
Analog or analogue may refer to:
Computing and electronics
* Analog signal, in which information is encoded in a continuous variable
** Analog device, an apparatus that operates on analog signals
*** Analog electronics, circuits which use analo ...
calculations in the early 20th century. The first
digital electronic calculating machines were developed during
World War II
World War II or the Second World War, often abbreviated as WWII or WW2, was a world war that lasted from 1939 to 1945. It involved the World War II by country, vast majority of the world's countries—including all of the great power ...
. The first
semiconductor
A semiconductor is a material which has an electrical conductivity value falling between that of a conductor, such as copper, and an insulator, such as glass. Its resistivity falls as its temperature rises; metals behave in the opposite way. ...
transistor
upright=1.4, gate (G), body (B), source (S) and drain (D) terminals. The gate is separated from the body by an insulating layer (pink).
A transistor is a semiconductor device used to Electronic amplifier, amplify or electronic switch, switch ...
s in the late 1940s were followed by the
silicon
Silicon is a chemical element with the symbol Si and atomic number 14. It is a hard, brittle crystalline solid with a blue-grey metallic luster, and is a tetravalent metalloid and semiconductor. It is a member of group 14 in the periodic ...
-based
MOSFET
The metal–oxide–semiconductor field-effect transistor (MOSFET, MOS-FET, or MOS FET) is a type of field-effect transistor (FET), most commonly fabricated by the controlled oxidation of silicon. It has an insulated gate, the voltage of which d ...
(MOS transistor) and
monolithic integrated circuit chip technologies in the late 1950s, leading to the
microprocessor
A microprocessor is a computer processor where the data processing logic and control is included on a single integrated circuit, or a small number of integrated circuits. The microprocessor contains the arithmetic, logic, and control circu ...
and the
microcomputer revolution
The history of the personal computer as a mass-market consumer electronic device began with the microcomputer revolution of the 1970s. A personal computer is one intended for interactive individual use, as opposed to a mainframe computer where ...
in the 1970s. The speed, power and versatility of computers have been increasing dramatically ever since then, with
transistor count
The transistor count is the number of transistors in an electronic device (typically on a single substrate or "chip"). It is the most common measure of integrated circuit complexity (although the majority of transistors in modern microprocessor ...
s increasing at a rapid pace (as predicted by
Moore's law
Moore's law is the observation that the number of transistors in a dense integrated circuit (IC) doubles about every two years. Moore's law is an observation and projection of a historical trend. Rather than a law of physics, it is an empi ...
), leading to the
Digital Revolution during the late 20th to early 21st centuries.
Conventionally, a modern computer consists of at least one
processing element, typically a
central processing unit
A central processing unit (CPU), also called a central processor, main processor or just processor, is the electronic circuitry that executes instructions comprising a computer program. The CPU performs basic arithmetic, logic, controlling, an ...
(CPU) in the form of a microprocessor, along with some type of
computer memory
In computing, memory is a device or system that is used to store information for immediate use in a computer or related computer hardware and digital electronic devices. The term ''memory'' is often synonymous with the term '' primary storage ...
, typically
semiconductor memory
Semiconductor memory is a digital electronic semiconductor device used for digital data storage, such as computer memory. It typically refers to devices in which data is stored within metal–oxide–semiconductor (MOS) memory cells on a sil ...
chips. The processing element carries out arithmetic and logical operations, and a sequencing and control unit can change the order of operations in response to stored
information
Information is an abstract concept that refers to that which has the power to inform. At the most fundamental level information pertains to the interpretation of that which may be sensed. Any natural process that is not completely random, ...
. Peripheral devices include input devices (keyboards, mice,
joystick
A joystick, sometimes called a flight stick, is an input device consisting of a stick that pivots on a base and reports its angle or direction to the device it is controlling. A joystick, also known as the control column, is the principal cont ...
, etc.), output devices (monitor screens,
printers, etc.), and input/output devices that perform both functions (e.g., the 2000s-era
touchscreen
A touchscreen or touch screen is the assembly of both an input ('touch panel') and output ('display') device. The touch panel is normally layered on the top of an electronic visual display of an information processing system. The display is ofte ...
). Peripheral devices allow information to be retrieved from an external source and they enable the result of operations to be saved and retrieved.
Etymology

According to the ''
Oxford English Dictionary
The ''Oxford English Dictionary'' (''OED'') is the first and foundational historical dictionary of the English language, published by Oxford University Press (OUP). It traces the historical development of the English language, providing a com ...
'', the first known use of ''computer'' was in a 1613 book called ''The Yong Mans Gleanings'' by the English writer
Richard Brathwait: "I haue read the truest computer of Times, and the best Arithmetician that euer breathed, and he reduceth thy dayes into a short number." This usage of the term referred to a
human computer
The term "computer", in use from the early 17th century (the first known written reference dates from 1613), meant "one who computes": a person performing mathematical calculations, before electronic computers became commercially available. A ...
, a person who carried out calculations or computations. The word continued with the same meaning until the middle of the 20th century. During the latter part of this period women were often hired as computers because they could be paid less than their male counterparts. By 1943, most human computers were women.
The ''
Online Etymology Dictionary'' gives the first attested use of ''computer'' in the 1640s, meaning 'one who calculates'; this is an "agent noun from compute (v.)". The ''Online Etymology Dictionary'' states that the use of the term to mean calculating machine' (of any type) is from 1897." The ''Online Etymology Dictionary'' indicates that the "modern use" of the term, to mean 'programmable digital electronic computer' dates from "1945 under this name;
n a
N, or n, is the fourteenth letter in the Latin alphabet, used in the modern English alphabet, the alphabets of other western European languages and others worldwide. Its name in English is ''en'' (pronounced ), plural ''ens''.
History
...
theoretical
ense
Ense () is a municipality in the district of Soest, in North Rhine-Westphalia, Germany.
Geography
Ense is situated on the river Möhne, approx. 12 km north-west of Arnsberg and 12 km south-west of Soest. Ense lies at the northside of ...
from 1937, as ''
Turing machine
A Turing machine is a mathematical model of computation describing an abstract machine that manipulates symbols on a strip of tape according to a table of rules. Despite the model's simplicity, it is capable of implementing any computer algor ...
''".
History
Pre-20th century

Devices have been used to aid computation for thousands of years, mostly using
one-to-one correspondence
In mathematics, a bijection, also known as a bijective function, one-to-one correspondence, or invertible function, is a function between the elements of two sets, where each element of one set is paired with exactly one element of the other ...
with
fingers. The earliest counting device was most likely a form of
tally stick. Later record keeping aids throughout the
Fertile Crescent
The Fertile Crescent ( ar, الهلال الخصيب) is a crescent-shaped region in the Middle East, spanning modern-day Iraq, Syria, Lebanon, Israel, State of Palestine, Palestine and Jordan, together with the northern region of Kuwait, sou ...
included calculi (clay spheres, cones, etc.) which represented counts of items, likely livestock or grains, sealed in hollow unbaked clay containers. The use of
counting rods
Counting rods () are small bars, typically 3–14 cm long, that were used by mathematicians for calculation in ancient East Asia. They are placed either horizontally or vertically to represent any integer or rational number.
The written ...
is one example.

The
abacus
The abacus (''plural'' abaci or abacuses), also called a counting frame, is a calculating tool which has been used since ancient times. It was used in the ancient Near East, Europe, China, and Russia, centuries before the adoption of the H ...
was initially used for arithmetic tasks. The
Roman abacus was developed from devices used in
Babylonia
Babylonia (; Akkadian: , ''māt Akkadī'') was an ancient Akkadian-speaking state and cultural area based in the city of Babylon in central-southern Mesopotamia (present-day Iraq and parts of Syria). It emerged as an Amorite-ruled state ...
as early as 2400 BC. Since then, many other forms of reckoning boards or tables have been invented. In a medieval European
counting house
A counting house, or counting room, was traditionally an office in which the financial books of a business were kept. It was also the place that the business received appointments and correspondence relating to demands for payment.
As the use of ...
, a checkered cloth would be placed on a table, and markers moved around on it according to certain rules, as an aid to calculating sums of money.

The
Antikythera mechanism
The Antikythera mechanism ( ) is an Ancient Greek hand-powered orrery, described as the oldest example of an analogue computer used to predict astronomical positions and eclipses decades in advance. It could also be used to track the four-y ...
is believed to be the earliest known mechanical
analog computer
An analog computer or analogue computer is a type of computer that uses the continuous variation aspect of physical phenomena such as electrical, mechanical, or hydraulic quantities (''analog signals'') to model the problem being solved. ...
, according to
Derek J. de Solla Price. It was designed to calculate astronomical positions. It was discovered in 1901 in the
Antikythera wreck
The Antikythera wreck ( gr, Ναυάγιο των Αντικυθήρων) is a Roman-era shipwreck dating from the second quarter of the first century BC."''The Antikythera Shipwreck. The Ship, The Treasures, The Mechanism. National Archaeologic ...
off the Greek island of
Antikythera
Antikythera or Anticythera ( ) is a Greek island lying on the edge of the Aegean Sea, between Crete and Peloponnese. In antiquity the island was known as (). Since the 2011 local government reform it is part of the municipality of Kythira isla ...
, between
Kythera
Kythira (, ; el, Κύθηρα, , also transliterated as Cythera, Kythera and Kithira) is an island in Greece lying opposite the south-eastern tip of the Peloponnese peninsula. It is traditionally listed as one of the seven main Ionian Islands, ...
and
Crete
Crete ( el, Κρήτη, translit=, Modern: , Ancient: ) is the largest and most populous of the Greek islands, the 88th largest island in the world and the fifth largest island in the Mediterranean Sea, after Sicily, Sardinia, Cypru ...
, and has been dated to approximately . Devices of comparable complexity to the Antikythera mechanism would not reappear until the fourteenth century.
Many mechanical aids to calculation and measurement were constructed for astronomical and navigation use. The
planisphere
In astronomy, a planisphere () is a star chart analog computing instrument in the form of two adjustable disks that rotate on a common pivot. It can be adjusted to display the visible stars for any time and date. It is an instrument to assist ...
was a
star chart
A star chart is a celestial map of the night sky with astronomical objects laid out on a grid system. They are used to identify and locate constellations, stars, nebulae, galaxies, and planets. They have been used for human navigation since ...
invented by
Abū Rayhān al-Bīrūnī
Abu Rayhan Muhammad ibn Ahmad al-Biruni (973 – after 1050) commonly known as al-Biruni, was a Khwarazmian Iranian in scholar and polymath during the Islamic Golden Age. He has been called variously the "founder of Indology", "Father of Co ...
in the early 11th century.
[G. Wiet, V. Elisseeff, P. Wolff, J. Naudu (1975). ''History of Mankind, Vol 3: The Great medieval Civilisations'', p. 649. George Allen & Unwin Ltd, ]UNESCO
The United Nations Educational, Scientific and Cultural Organization is a specialized agency of the United Nations (UN) aimed at promoting world peace and security through international cooperation in education, arts, sciences and culture. I ...
. The
astrolabe
An astrolabe ( grc, ἀστρολάβος ; ar, ٱلأَسْطُرلاب ; persian, ستارهیاب ) is an ancient astronomical instrument that was a handheld model of the universe. Its various functions also make it an elaborate incli ...
was invented in the
Hellenistic world in either the 1st or 2nd centuries BC and is often attributed to
Hipparchus
Hipparchus (; el, Ἵππαρχος, ''Hipparkhos''; BC) was a Greek astronomer, geographer, and mathematician. He is considered the founder of trigonometry, but is most famous for his incidental discovery of the precession of the equ ...
. A combination of the planisphere and
dioptra
A dioptra (sometimes also named dioptre or diopter, from el, διόπτρα) is a classical astronomical and surveying instrument, dating from the 3rd century BC. The dioptra was a sighting tube or, alternatively, a rod with a sight at b ...
, the astrolabe was effectively an analog computer capable of working out several different kinds of problems in
spherical astronomy. An astrolabe incorporating a mechanical
calendar computer and
gear
A gear is a rotating circular machine part having cut teeth or, in the case of a cogwheel or gearwheel, inserted teeth (called ''cogs''), which mesh with another (compatible) toothed part to transmit (convert) torque and speed. The basic p ...
-wheels was invented by Abi Bakr of
Isfahan,
Persia
Iran, officially the Islamic Republic of Iran, and also called Persia, is a country located in Western Asia. It is bordered by Iraq and Turkey to the west, by Azerbaijan and Armenia to the northwest, by the Caspian Sea and Turkme ...
in 1235. Abū Rayhān al-Bīrūnī invented the first mechanical geared
lunisolar calendar
A lunisolar calendar is a calendar in many cultures, combining lunar calendars and solar calendars. The date of Lunisolar calendars therefore indicates both the Moon phase and the time of the solar year, that is the position of the Sun in the ...
astrolabe, an early fixed-
wire
Overhead power cabling. The conductor consists of seven strands of steel (centre, high tensile strength), surrounded by four outer layers of aluminium (high conductivity). Sample diameter 40 mm
A wire is a flexible strand of metal.
Wire is co ...
d knowledge processing
machine with a
gear train
A gear train is a mechanical system formed by mounting gears on a frame so the teeth of the gears engage.
Gear teeth are designed to ensure the pitch circles of engaging gears roll on each other without slipping, providing a smooth transmission ...
and gear-wheels, .
The
sector
Sector may refer to:
Places
* Sector, West Virginia, U.S.
Geometry
* Circular sector, the portion of a disc enclosed by two radii and a circular arc
* Hyperbolic sector, a region enclosed by two radii and a hyperbolic arc
* Spherical sector, a p ...
, a calculating instrument used for solving problems in proportion, trigonometry, multiplication and division, and for various functions, such as squares and cube roots, was developed in the late 16th century and found application in gunnery, surveying and navigation.
The
planimeter
A planimeter, also known as a platometer, is a measuring instrument used to determine the area of an arbitrary two-dimensional shape.
Construction
There are several kinds of planimeters, but all operate in a similar way. The precise way in whic ...
was a manual instrument to calculate the area of a closed figure by tracing over it with a mechanical linkage.

The
slide rule
The slide rule is a mechanical analog computer which is used primarily for multiplication and division, and for functions such as exponents, roots, logarithms, and trigonometry. It is not typically designed for addition or subtraction, which is ...
was invented around 1620–1630 by the English clergyman
William Oughtred
William Oughtred ( ; 5 March 1574 – 30 June 1660), also Owtred, Uhtred, etc., was an English mathematician and Anglican clergyman.'Oughtred (William)', in P. Bayle, translated and revised by J.P. Bernard, T. Birch and J. Lockman, ''A Genera ...
, shortly after the publication of the concept of the
logarithm
In mathematics, the logarithm is the inverse function to exponentiation. That means the logarithm of a number to the base is the exponent to which must be raised, to produce . For example, since , the ''logarithm base'' 10 of ...
. It is a hand-operated analog computer for doing multiplication and division. As slide rule development progressed, added scales provided reciprocals, squares and square roots, cubes and cube roots, as well as
transcendental function
In mathematics, a transcendental function is an analytic function that does not satisfy a polynomial equation, in contrast to an algebraic function.
In other words, a transcendental function "transcends" algebra in that it cannot be expressed alg ...
s such as logarithms and exponentials, circular and
hyperbolic
Hyperbolic is an adjective describing something that resembles or pertains to a hyperbola (a curve), to hyperbole (an overstatement or exaggeration), or to hyperbolic geometry.
The following phenomena are described as ''hyperbolic'' because they ...
trigonometry
Trigonometry () is a branch of mathematics that studies relationships between side lengths and angles of triangles. The field emerged in the Hellenistic world during the 3rd century BC from applications of geometry to astronomical studies. ...
and other
functions. Slide rules with special scales are still used for quick performance of routine calculations, such as the
E6B circular slide rule used for time and distance calculations on light aircraft.
In the 1770s,
Pierre Jaquet-Droz, a Swiss
watchmaker
A watchmaker is an artisan who makes and repairs watches. Since a majority of watches are now factory-made, most modern watchmakers only repair watches. However, originally they were master craftsmen who built watches, including all their part ...
, built a mechanical doll (
automaton
An automaton (; plural: automata or automatons) is a relatively self-operating machine, or control mechanism designed to automatically follow a sequence of operations, or respond to predetermined instructions.Automaton – Definition and More ...
) that could write holding a quill pen. By switching the number and order of its internal wheels different letters, and hence different messages, could be produced. In effect, it could be mechanically "programmed" to read instructions. Along with two other complex machines, the doll is at the Musée d'Art et d'Histoire of
Neuchâtel
Neuchâtel (, , ; german: Neuenburg) is the capital of the Swiss canton of Neuchâtel, situated on the shoreline of Lake Neuchâtel. Since the fusion in 2021 of the municipalities of Neuchâtel, Corcelles-Cormondrèche, Peseux, and Valangin, ...
,
Switzerland, and still operates.
In 1831–1835, mathematician and engineer
Giovanni Plana devised a
Perpetual Calendar machine, which, through a system of pulleys and cylinders and over, could predict the
perpetual calendar
A perpetual calendar is a calendar valid for many years, usually designed to look up the day of the week for a given date in the past or future.
For the Gregorian and Julian calendars, a perpetual calendar typically consists of one of three ...
for every year from AD 0 (that is, 1 BC) to AD 4000, keeping track of leap years and varying day length. The
tide-predicting machine invented by the Scottish scientist
Sir William Thomson
William Thomson, 1st Baron Kelvin, (26 June 182417 December 1907) was a British mathematician, mathematical physicist and engineer born in Belfast. Professor of Natural Philosophy at the University of Glasgow for 53 years, he did important ...
in 1872 was of great utility to navigation in shallow waters. It used a system of pulleys and wires to automatically calculate predicted tide levels for a set period at a particular location.
The
differential analyser
The differential analyser is a mechanical analogue computer designed to solve differential equations by integration, using wheel-and-disc mechanisms to perform the integration. It was one of the first advanced computing devices to be used operat ...
, a mechanical analog computer designed to solve
differential equation
In mathematics, a differential equation is an equation that relates one or more unknown functions and their derivatives. In applications, the functions generally represent physical quantities, the derivatives represent their rates of change, a ...
s by
integration
Integration may refer to:
Biology
* Multisensory integration
* Path integration
* Pre-integration complex, viral genetic material used to insert a viral genome into a host genome
*DNA integration, by means of site-specific recombinase technolo ...
, used wheel-and-disc mechanisms to perform the integration. In 1876, Sir William Thomson had already discussed the possible construction of such calculators, but he had been stymied by the limited output torque of the
ball-and-disk integrators.
[Ray Girvan]
"The revealed grace of the mechanism: computing after Babbage"
, ''Scientific Computing World'', May/June 2003 In a differential analyzer, the output of one integrator drove the input of the next integrator, or a graphing output. The
torque amplifier was the advance that allowed these machines to work. Starting in the 1920s,
Vannevar Bush
Vannevar Bush ( ; March 11, 1890 – June 28, 1974) was an American engineer, inventor and science administrator, who during World War II headed the U.S. Office of Scientific Research and Development (OSRD), through which almost all wartim ...
and others developed mechanical differential analyzers.
First computer
Charles Babbage
Charles Babbage (; 26 December 1791 – 18 October 1871) was an English polymath. A mathematician, philosopher, inventor and mechanical engineer, Babbage originated the concept of a digital programmable computer.
Babbage is considered ...
, an English mechanical engineer and
polymath
A polymath ( el, πολυμαθής, , "having learned much"; la, homo universalis, "universal human") is an individual whose knowledge spans a substantial number of subjects, known to draw on complex bodies of knowledge to solve specific pro ...
, originated the concept of a programmable computer. Considered the "
father of the computer", he conceptualized and invented the first
mechanical computer
A mechanical computer is a computer built from mechanical components such as levers and gears rather than electronic components. The most common examples are adding machines and mechanical counters, which use the turning of gears to incremen ...
in the early 19th century. After working on his revolutionary
difference engine
A difference engine is an automatic mechanical calculator designed to tabulate polynomial functions. It was designed in the 1820s, and was first created by Charles Babbage. The name, the difference engine, is derived from the method of divided d ...
, designed to aid in navigational calculations, in 1833 he realized that a much more general design, an
Analytical Engine
The Analytical Engine was a proposed mechanical general-purpose computer designed by English mathematician and computer pioneer Charles Babbage. It was first described in 1837 as the successor to Babbage's difference engine, which was a design ...
, was possible. The input of programs and data was to be provided to the machine via
punched card
A punched card (also punch card or punched-card) is a piece of stiff paper that holds digital data represented by the presence or absence of holes in predefined positions. Punched cards were once common in data processing applications or to di ...
s, a method being used at the time to direct mechanical
looms such as the
Jacquard loom
The Jacquard machine () is a device fitted to a loom that simplifies the process of manufacturing textiles with such complex patterns as brocade, damask and matelassé. The resulting ensemble of the loom and Jacquard machine is then called a J ...
. For output, the machine would have a printer, a curve plotter and a bell. The machine would also be able to punch numbers onto cards to be read in later. The Engine incorporated an
arithmetic logic unit
In computing, an arithmetic logic unit (ALU) is a combinational digital circuit that performs arithmetic and bitwise operations on integer binary numbers. This is in contrast to a floating-point unit (FPU), which operates on floating point numb ...
,
control flow
In computer science, control flow (or flow of control) is the order in which individual statements, instructions or function calls of an imperative program are executed or evaluated. The emphasis on explicit control flow distinguishes an '' ...
in the form of
conditional branching and
loops, and integrated
memory
Memory is the faculty of the mind by which data or information is encoded, stored, and retrieved when needed. It is the retention of information over time for the purpose of influencing future action. If past events could not be remembered ...
, making it the first design for a general-purpose computer that could be described in modern terms as
Turing-complete
In computability theory, a system of data-manipulation rules (such as a computer's instruction set, a programming language, or a cellular automaton) is said to be Turing-complete or computationally universal if it can be used to simulate any Tu ...
.
The machine was about a century ahead of its time. All the parts for his machine had to be made by hand – this was a major problem for a device with thousands of parts. Eventually, the project was dissolved with the decision of the
British Government
ga, Rialtas a Shoilse gd, Riaghaltas a Mhòrachd
, image = HM Government logo.svg
, image_size = 220px
, image2 = Royal Coat of Arms of the United Kingdom (HM Government).svg
, image_size2 = 180px
, caption = Royal Arms
, date_est ...
to cease funding. Babbage's failure to complete the analytical engine can be chiefly attributed to political and financial difficulties as well as his desire to develop an increasingly sophisticated computer and to move ahead faster than anyone else could follow. Nevertheless, his son,
Henry Babbage, completed a simplified version of the analytical engine's computing unit (the ''mill'') in 1888. He gave a successful demonstration of its use in computing tables in 1906.
Analog computers

During the first half of the 20th century, many scientific
computing
Computing is any goal-oriented activity requiring, benefiting from, or creating computing machinery. It includes the study and experimentation of algorithmic processes, and development of both hardware and software. Computing has scientific, ...
needs were met by increasingly sophisticated analog computers, which used a direct mechanical or electrical model of the problem as a basis for
computation
Computation is any type of arithmetic or non-arithmetic calculation that follows a well-defined model (e.g., an algorithm).
Mechanical or electronic devices (or, historically, people) that perform computations are known as '' computers''. An esp ...
. However, these were not programmable and generally lacked the versatility and accuracy of modern digital computers.
The first modern analog computer was a
tide-predicting machine, invented by
Sir William Thomson
William Thomson, 1st Baron Kelvin, (26 June 182417 December 1907) was a British mathematician, mathematical physicist and engineer born in Belfast. Professor of Natural Philosophy at the University of Glasgow for 53 years, he did important ...
(later to become Lord Kelvin) in 1872. The
differential analyser
The differential analyser is a mechanical analogue computer designed to solve differential equations by integration, using wheel-and-disc mechanisms to perform the integration. It was one of the first advanced computing devices to be used operat ...
, a mechanical analog computer designed to solve differential equations by integration using wheel-and-disc mechanisms, was conceptualized in 1876 by
James Thomson, the elder brother of the more famous Sir William Thomson.
The art of mechanical analog computing reached its zenith with the
differential analyzer, built by H. L. Hazen and
Vannevar Bush
Vannevar Bush ( ; March 11, 1890 – June 28, 1974) was an American engineer, inventor and science administrator, who during World War II headed the U.S. Office of Scientific Research and Development (OSRD), through which almost all wartim ...
at
MIT starting in 1927. This built on the mechanical integrators of
James Thomson and the torque amplifiers invented by H. W. Nieman. A dozen of these devices were built before their obsolescence became obvious. By the 1950s, the success of
digital electronic computers had spelled the end for most analog computing machines, but analog computers remained in use during the 1950s in some specialized applications such as education (
slide rule
The slide rule is a mechanical analog computer which is used primarily for multiplication and division, and for functions such as exponents, roots, logarithms, and trigonometry. It is not typically designed for addition or subtraction, which is ...
) and aircraft (
control system
A control system manages, commands, directs, or regulates the behavior of other devices or systems using control loops. It can range from a single home heating controller using a thermostat controlling a domestic boiler to large industrial ...
s).
Digital computers
Electromechanical
By 1938, the
United States Navy
The United States Navy (USN) is the maritime service branch of the United States Armed Forces and one of the eight uniformed services of the United States. It is the largest and most powerful navy in the world, with the estimated tonnage ...
had developed an electromechanical analog computer small enough to use aboard a
submarine. This was the
Torpedo Data Computer, which used trigonometry to solve the problem of firing a torpedo at a moving target. During
World War II
World War II or the Second World War, often abbreviated as WWII or WW2, was a world war that lasted from 1939 to 1945. It involved the World War II by country, vast majority of the world's countries—including all of the great power ...
similar devices were developed in other countries as well.

Early digital computers were
electromechanical
In engineering, electromechanics combines processes and procedures drawn from electrical engineering and mechanical engineering. Electromechanics focuses on the interaction of electrical and mechanical systems as a whole and how the two system ...
; electric switches drove mechanical relays to perform the calculation. These devices had a low operating speed and were eventually superseded by much faster all-electric computers, originally using
vacuum tube
A vacuum tube, electron tube, valve (British usage), or tube (North America), is a device that controls electric current flow in a high vacuum between electrodes to which an electric voltage, potential difference has been applied.
The type kn ...
s. The
Z2, created by German engineer
Konrad Zuse
Konrad Ernst Otto Zuse (; 22 June 1910 – 18 December 1995) was a German civil engineer, pioneering computer scientist, inventor and businessman. His greatest achievement was the world's first programmable computer; the functional program- ...
in 1939, was one of the earliest examples of an electromechanical relay computer.
In 1941, Zuse followed his earlier machine up with the
Z3, the world's first working electromechanical
programmable, fully automatic digital computer. The Z3 was built with 2000
relay
A relay
Electromechanical relay schematic showing a control coil, four pairs of normally open and one pair of normally closed contacts
An automotive-style miniature relay with the dust cover taken off
A relay is an electrically operated swit ...
s, implementing a 22
bit
The bit is the most basic unit of information in computing and digital communications. The name is a portmanteau of binary digit. The bit represents a logical state with one of two possible values. These values are most commonly represented a ...
word length
In computing, a word is the natural unit of data used by a particular processor design. A word is a fixed-sized datum handled as a unit by the instruction set or the hardware of the processor. The number of bits or digits in a word (the ''word ...
that operated at a
clock frequency
In computing, the clock rate or clock speed typically refers to the frequency at which the clock generator of a processor can generate pulses, which are used to synchronize the operations of its components, and is used as an indicator of the p ...
of about 5–10
Hz. Program code was supplied on punched
film while data could be stored in 64 words of memory or supplied from the keyboard. It was quite similar to modern machines in some respects, pioneering numerous advances such as
floating-point numbers. Rather than the harder-to-implement decimal system (used in
Charles Babbage
Charles Babbage (; 26 December 1791 – 18 October 1871) was an English polymath. A mathematician, philosopher, inventor and mechanical engineer, Babbage originated the concept of a digital programmable computer.
Babbage is considered ...
's earlier design), using a
binary system meant that Zuse's machines were easier to build and potentially more reliable, given the technologies available at that time. The Z3 was not itself a universal computer but could be extended to be
Turing complete
Alan Mathison Turing (; 23 June 1912 – 7 June 1954) was an English mathematician, computer scientist, logician, cryptanalyst, philosopher, and theoretical biologist. Turing was highly influential in the development of theoretical co ...
.
Zuse's next computer, the
Z4, became the world's first commercial computer; after initial delay due to the Second World War, it was completed in 1950 and delivered to the