Calculator from Wikipedia, the Free Encyclopedia
Total Page:16
File Type:pdf, Size:1020Kb
Calculator From Wikipedia, the free encyclopedia An electronic calculator is a small, portable electronic device used to perform both basic operations of arithmetic and complex mathematical operations. The first solid state electronic calculator was created in the 1960s, building on the extensive history of tools such as the abacus, developed around 2000 BC, and the mechanical calculator, developed in the 17th century. It was developed in parallel with the analog computers of the day. The pocket sized devices became available in the 1970s, especially after the first microprocessor developed by Intel for the Japanese calculator company Busicom. They later became commonly used within the Oil and Gas industry. An electronic pocket calculator with a LCD seven Modern electronic calculators vary from cheap, giveaway, creditcard segment display, that can sized models to sturdy desktop models with builtin printers. They perform arithmetic became popular in the mid1970s as integrated circuits made their size operations. and cost small. By the end of that decade, calculator prices had reduced to a point where a basic calculator was affordable to most and they became common in schools. Computer operating systems as far back as early Unix have included interactive calculator programs such as dc and hoc, and calculator functions are included in almost all PDAtype devices (save a few dedicated address book and dictionary devices). 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. Graphing calculators can be used to graph functions defined on the real line, or higherdimensional Euclidean space. Currently, basic calculators are inexpensive, but the A modern scientific scientific and graphing models tend to be higher priced. calculator with a dot matrix In 1986, calculators still represented an estimated 41% of the world's LCD display. generalpurpose hardware capacity to compute information. This diminished to less than 0.05% by 2007.[1] Contents 1 Design 1.1 Input 1.2 Display output 1.2 Display output 1.3 Memory 1.4 Power source 1.5 Key layout 2 Internal workings 2.1 Example 3 Calculators compared to computers 4 History 4.1 Precursors to the electronic calculator 4.2 Development of electronic calculators 4.3 1970s to mid1980s 4.3.1 Pocket calculators 4.3.2 Programmable calculators 4.3.3 Technical improvements 4.3.4 Mass market phase 4.4 Mid1980s to present 5 Use in education 6 Manufacturers 6.1 Current major manufacturers 7 See also 8 Notes 9 References 10 Further reading 11 External links Design Input Modern 2015 electronic calculators contain a keyboard with buttons for digits and arithmetical operations. Some even contain 00 and 000 buttons to make larger or smaller numbers easier to enter. Most basic calculators assign only one digit or operation on each button. However, in more specific calculators, a button can perform multifunction working with key combinations. Display output Calculators usually have liquidcrystal displays (LCD) as output in place of historical vacuum fluorescent displays (VFD). Details are provided in the section Technical improvements. Largesized figures and comma separators are often used to improve readability. Various symbols for function commands Scientific calculator displays of 1 may also be shown on the display. Fractions such as ∕3 are fractions and decimal equivalents. displayed as decimal approximations, for example rounded to 1 0.33333333. Also, some fractions such as ∕7 which is 0.14285714285714 (to 14 significant figures) can be difficult to recognize in decimal form; as a result, many scientific calculators are able to work in vulgar fractions or mixed numbers. Memory Calculators also have the ability to store numbers into memory. Basic types of these store only one number at a time. More specific types are able to store many numbers represented in variables. The variables can also be used for constructing formulas. Some models have the ability to extend memory capacity to store more numbers; the extended address is referred to as an array index. Power source Power sources of calculators are batteries, solar cells or electricity (for old models) turning on with a switch or button. Some models even have no turnoff button but they provide some way to put off, for example, leaving no operation for a moment, covering solar cell exposure, or closing their lid. Crank powered calculators were also common in the early computer era. Key layout Usual basic pocket calculator layout MC Memory Clear MC M+ M MR M+ Memory Addition C ± ÷ × M Memory Subtraction 7 8 9 MR Memory Recall C or 4 5 6 + All Clear AC 1 2 3 = Clear (last) Entry; sometimes called CE/C: a first press clears the last entry CE 0 . (CE), a second press clears all (C) ± Toggle positive/negative number ÷ Division × Multiplication Subtraction Subtraction + Addition . Decimal point = Result Internal workings In general, a basic electronic calculator consists of the following components:[2] Power source (Mains electricity, battery and/or solar cell) Keypad (Input device) consists of keys used to input numbers and function commands (addition, multiplication, squareroot, etc.) Processor chip (microprocessor) contains: Scanning (Polling) unit when a calculator is powered on, it scans the keypad waiting to pick up an electrical signal when a key is pressed. Encoder unit converts the numbers and functions into binary code. X register and Y register They are number stores where numbers are stored temporarily while doing calculations. All numbers go into the X register first. The number in the X register is shown on the display. Flag register The function for the calculation is stored here until the calculator needs it. Permanent memory (ROM) The instructions for inbuilt functions (arithmetic operations, square roots, percentages, trigonometry etc.) are stored here in binary form. These instructions are "programs" stored permanently and cannot be erased. User memory (RAM) The store where numbers can be stored by the user. User memory contents can be changed or erased by the user. Arithmetic logic unit (ALU) The ALU executes all arithmetic and logic instructions, and provides the results in binary coded form. Decoder unit converts binary code into "decimal" numbers which can be displayed on the display unit. Display panel (Output device) displays input numbers, commands and results. LCDs, VFDs, and lightemitting diode (LED) displays use seven segments to represent each digit in a basic calculator. Advanced calculators may use dot matrix displays. A printing calculator, in addition to a display panel, has a printing unit that prints results in ink onto a roll of paper, using a printing mechanism. Example A basic explanation as to how calculations are performed in a simple 4 function calculator: To perform the calculation 25 + 9, one presses keys in the following sequence on most calculators: 2 5 + 9 = . When 2 5 is entered, it is picked up by the scanning unit, the number 25 is encoded and sent to the X register. Next, when the + key is pressed, the "addition" instruction is also encoded and sent to the flag register. The second number 9 is encoded and sent to the X register. This "pushes" (shifts) the first number out into the Y register. An office calculating When the = key is pressed, a "message" (signal) from the machine with a paper flag register tells the permanent memory that the operation printer. to be done is "addition". The numbers in the X and Y registers are then loaded into the ALU and the calculation is carried out following instructions from the permanent memory. The answer, 34 is sent (shifted) back to the X register. From there it is converted by the decoder unit into a decimal number (usually binarycoded decimal), and then shown on the display panel. Other functions are usually carried out using repeated additions or subtractions. Subtractions are usually carried out by using two'scomplement operations. Where calculators have additional functions such as square root, or trigonometric functions, software algorithms are required to produce high precision results. Sometimes significant design effort is required to fit all the desired functions in the limited memory space available in the calculator chip, with acceptable calculation time.[3] Calculators compared to computers The fundamental difference between a calculator and computer is that a computer can be programmed in a way that allows the program to take different branches according to intermediate results, while calculators are predesigned with specific functions such as addition, multiplication, and logarithms built in. The distinction is not clearcut: some devices classed as programmable calculators have programming functionality, sometimes with support for programming languages such as RPL or TI BASIC. Typically the user buys the least expensive model having a specific feature set, but does not care much about speed (since speed is constrained by how fast the user can press the buttons). Thus designers of calculators strive to minimize the number of logic elements on the chip, not the number of clock cycles needed to do a computation. For instance, instead of a hardware multiplier, a calculator might implement floating point mathematics with code in ROM, and compute trigonometric functions with the CORDIC algorithm because