0
0 is a number representing an empty quantity. Adding 0 to any number leaves that number unchanged; in mathematical terminology, 0 is the additive identity of the integers, rational numbers, real numbers, and complex numbers, as well as other algebraic structures. Multiplying any number by 0 results in 0, and consequently dividing by 0 is generally considered to be undefined in arithmetic.
As a numerical digit, 0 plays a crucial role in decimal notation: it indicates that the power of ten corresponding to the place containing a 0 does not contribute to the total. For example, "205" in decimal means two hundreds, no tens, and five ones. The same principle applies in place-value notations that uses a base other than ten, such as binary and hexadecimal. The modern use of 0 in this manner derives from Indian mathematics that was transmitted to Europe via Mathematics in the [medieval Islamic world|medieval Islamic mathematicians] and popularized by Fibonacci. It was independently used by the Maya.
Common names for the number 0 in English include zero, nought, naught, and nil. In contexts where at least one adjacent digit distinguishes it from the letter O, the number is sometimes pronounced as oh or o. Informal or slang terms for 0 include zilch and zip. Historically, ought, aught, and cipher have also been used.
Etymology
The word zero came into the English language via French zéro from the Italian zero, a contraction of the Venetian zevero form of Italian zefiro via ṣafira or ṣifr. In pre-Islamic time the word had the meaning "empty". evolved to mean zero when it was used to translate from India. The earliest known use of zero as a Loanword in English literature was 1598.The Italian mathematician Fibonacci, who grew up in North Africa and is credited with introducing the decimal system to Europe, used the term zephyrum. This became zefiro in Italian, and was then contracted to zero in Venetian. The Italian word Wikt:zefiro was already in existence and may have influenced the spelling when transcribing Arabic.
Modern usage
Depending on the context, there may be different words used for the number zero, or the concept of zero. For the simple notion of lacking, the words "nothing" and "none" are often used. The British English words "nought" or "naught", and "nil" are also synonymous.It is often called "oh" in the context of reading out a string of digits, such as telephone numbers, street addresses, credit card numbers, military time, or years. For example, the area code 201 may be pronounced "two oh one", and the year 1907 is often pronounced "nineteen oh seven". The presence of other digits, indicating that the string contains only numbers, avoids confusion with the letter O. For this reason, systems that include strings with both letters and numbers may exclude the use of the letter O.
Slang words for zero include "zip", "zilch", "nada", and "scratch". In the context of sports, "nil" is sometimes used, especially in British English. Several sports have specific words for a score of zero, such as "love" in tennis – possibly from French l'œuf, "the egg" – and "duck" in cricket, a shortening of "duck's egg". "Goose egg" is another general slang term used for zero.
History
Ancient Near East
Ancient Egyptian numerals were of base 10. They used hieroglyphs for the digits and were not positional. In one papyrus written around, a scribe recorded daily incomes and expenditures for the pharaoh's court, using the nfr hieroglyph to indicate cases where the amount of a foodstuff received was exactly equal to the amount disbursed. Egyptologist Alan Gardiner suggested that the nfr hieroglyph was being used as a symbol for zero. The same symbol was also used to indicate the base level in drawings of tombs and pyramids, and distances were measured relative to the base line as being above or below this line.By the middle of the 2nd millennium BC, Babylonian mathematics had a sophisticated base 60 positional numeral system. The lack of a positional value was indicated by a space between sexagesimal numerals. In a tablet unearthed at Kish, the scribe Bêl-bân-aplu used three hooks as a placeholder in the same Babylonian system. By, a punctuation symbol was repurposed as a placeholder. Significantly, however, these placeholder signs for zero invented by the Babylonians possessed no numerical or conceptual value of their own—they appear as mathematical syntax, not as number. “Therefore, they cannot be interpreted as representations of the concept or the number zero.”
The Babylonian positional numeral system differed from the later Hindu–Arabic system in that it did not explicitly specify the magnitude of the leading sexagesimal digit, so that for example the lone digit 1 might represent any of 1, 60, 3600 = 602, etc., similar to the significand of a floating-point number but without an explicit exponent, and so only distinguished implicitly from context. The zero-like placeholder mark was only ever used in between digits, but never alone or at the end of a number.
Pre-Columbian Americas
The Mesoamerican Long Count calendar developed in south-central Mexico and Central America required the use of zero as a placeholder within its vigesimal positional numeral system. Many different glyphs, including the partial quatrefoil were used as a zero symbol for these Long Count dates, the earliest of which has a date of 36 BC.Since the eight earliest Long Count dates appear outside the Maya homeland, it is generally believed that the use of zero in the Americas predated the Maya and was possibly the invention of the Olmecs. Many of the earliest Long Count dates were found within the Olmec heartland, although the Olmec civilization ended by the, several centuries before the earliest known Long Count dates.
Although zero became an integral part of Maya numerals, with a different, empty tortoise-like "shell shape" used for many depictions of the "zero" numeral, it is assumed not to have influenced Old World numeral systems.
Quipu, a knotted cord device, used in the Inca Empire and its predecessor societies in the Andean region to record accounting and other digital data, is encoded in a base ten positional system. Zero is represented by the absence of a knot in the appropriate position.
Classical antiquity
The earliest confidently cited exemplar of the Greek use of the Hellenistic zero appears in Hipparchus in 140 CE.The archaic Greece had no symbol for zero, and did not use a digit placeholder for it. According to mathematician Charles Seife, after the Babylonian placeholder zero shows up sometime shortly after 500 BC, Greek astronomers began to use the lowercase Greek letter ό as a placeholder or representation of ground-level/null degree value. However, after using the Babylonian placeholder zero for astronomical calculations they would typically convert the numbers back into Greek numerals. As with the rejection of infinitesimals by Pythagoras, Greeks appear to maintain to a philosophical opposition to using zero as a number. “The whole of the Greek universe rested on this pillar: There is no void.” Nieder dates the appearance of zero in Greek astronomical texts after 400 BC and mathematician Robert Kaplan further specifies that it must have been after the conquests of Alexander.
Greeks seemed unsure about the status of zero as a number. Some of them asked themselves, "How can not being be?", leading to philosophical and, by the medieval period, religious arguments about the nature and existence of zero and the vacuum. The paradoxes of Zeno of Elea depend in large part on the uncertain interpretation of zero.
By AD150, Ptolemy, influenced by Hipparchus and the Babylonians, was using a symbol for zero in his work on mathematical astronomy called the Syntaxis Mathematica, also known as the Almagest. This Hellenistic zero was perhaps the earliest documented use of a numeral representing zero in the Old World. Ptolemy used it many times in his Almagest for the magnitude of solar and lunar eclipses. It represented the value of both digits and minutes of immersion at first and last contact. Digits varied continuously from 0 to 12 to 0 as the Moon passed over the Sun, where twelve digits was the angular diameter of the Sun. Minutes of immersion was tabulated from 00 to 3120 to 00, where 00 used the symbol as a placeholder in two positions of his sexagesimal positional numeral system, while the combination meant a zero angle. Minutes of immersion was also a continuous function , where d was the digit function and 3120 was the sum of the radii of the Sun's and Moon's discs. Ptolemy's symbol was a placeholder as well as a number used by two continuous mathematical functions, one within another, so it meant zero, not none. Over time, Ptolemy's zero tended to increase in size and lose the overline, sometimes depicted as a large elongated 0-like omicron "Ο" or as omicron with overline "ō" instead of a dot with overline.
The earliest use of zero in the calculation of the Julian Easter occurred before AD311, at the first entry in a table of epacts as preserved in an Ethiopic document for the years 311 to 369, using a Geʽez word for "none" alongside Geʽez numerals, which was translated from an equivalent table published by the Church of Alexandria in Medieval Greek. This use was repeated in 525 in an equivalent table, that was translated via the Latin nulla by Dionysius Exiguus, alongside Roman numerals. When division produced zero as a remainder, nihil, meaning "nothing", was used. These medieval zeros were used by all future medieval calculators of Easter. The initial "N" was used as a zero symbol in a table of Roman numerals by Bede—or his colleagues—around AD725.
China
The Sūnzĭ Suànjīng, of unknown date but estimated to be dated from the 1st to, describe how the Chinese counting rods system enabled one to perform positional decimal calculations. As noted in the Xiahou Yang Suanjing, to multiply or divide a number by 10, 100, 1000, or 10000, all one needs to do, with rods on the counting board, is to move them forwards, or back, by 1, 2, 3, or 4 places. The rods gave the decimal representation of a number, with an empty space denoting zero. A circa 190 AD, manual, the "Supplementary Notes on the Art of Figures", by Xu Yue, also outlines the techniques to add, subtract, multiply, and divide numbers, containing zero values in a decimal power, on counting devices, that include counting rods, and abacus. Chinese authors had been familiar with the idea of negative numbers, and decimal fractions, by the Han dynasty, as seen in The Nine Chapters on the Mathematical Art. Qín Jiǔsháo's 1247 Mathematical Treatise in Nine Sections is the oldest surviving Chinese mathematical text using a round symbol '〇' for zero. The origin of this symbol is unknown; it may have been produced by modifying a square symbol.Zero was not treated as a number at that time, but as a "vacant position".
Chinese Epigraphy
A variety of Chinese characters have been used, through history, to represent zero: 空, 零, 洞, 〇.India
, a Sanskrit prosody scholar, used binary sequences, in the form of short and long syllables, to identify the possible valid Sanskrit meters, a notation similar to Morse code. Pingala used the Sanskrit word śūnya explicitly to refer to zero.A decimal place value Grapheme for zero was developed in India.
The Lokavibhāga, a Jain text on cosmology surviving in a medieval Sanskrit translation of the Prakrit original, which is internally dated to AD 458, uses a decimal place-value system, including a zero. In this text, śūnya is also used to refer to zero.
The Aryabhatiya, states sthānāt sthānaṁ daśaguṇaṁ syāt "from place to place each is ten times the preceding".
Rules governing the use of zero appeared in Brahmagupta's Brahmasputha Siddhanta, which states the sum of zero with itself as zero, and incorrectly describes division by zero in the following way:
A positive or negative number when divided by zero is a fraction with the zero as denominator. Zero divided by a negative or positive number is either zero or is expressed as a fraction with zero as numerator and the finite quantity as denominator. Zero divided by zero is zero.
Bhāskara II's, 12th century, Līlāvatī instead proposed that division by zero results in an infinite quantity,
A quantity divided by zero becomes a fraction the denominator of which is zero. This fraction is termed an infinite quantity. In this quantity consisting of that which has zero for its divisor, there is no alteration, though many may be inserted or extracted; as no change takes place in the infinite and immutable God when worlds are created or destroyed, though numerous orders of beings are absorbed or put forth.
Early Asian Epigraphy
There are numerous copper plate inscriptions, with the same small in them, some of them possibly dated to the 6th century, but their date or authenticity may be open to doubt.A stone tablet found in the ruins of a temple near Sambor on the Mekong, Kratié Province, Cambodia, includes the inscription of "605" in Khmer numerals. The number is the year of the inscription in the Saka era, corresponding to a date of AD 683.
The first known use of special glyphs for the decimal digits that includes the indubitable appearance of a symbol for the digit zero, a small circle, appears on a stone inscription found at the Chaturbhuj Temple, Gwalior, in India, dated AD 876.
A symbol for zero, a black dot, is used throughout the Bakhshali manuscript, a practical manual on arithmetic for merchants. The Bodleian Library reported radiocarbon dating results for six folio from the manuscript, indicating that they came from different centuries, but date the manuscript to AD 799 – 1102.
Middle Ages
Transmission to Islamic culture
The Arabic-language inheritance of science was largely Greek, followed by Hindu influences. In 773, at Al-Mansur's behest, translations were made of many ancient treatises including Greek, Roman, Indian, and others.In AD 813, astronomical tables were prepared by a Persian mathematician, Muḥammad ibn Mūsā al-Khwārizmī, using Hindu numerals; and about 825, he published a book synthesizing Greek and Hindu knowledge and also contained his own contribution to mathematics including an explanation of the use of zero. This book was later translated into Latin in the 12th century under the title Algoritmi de numero Indorum. This title means "al-Khwarizmi on the Numerals of the Indians". The word "Algoritmi" was the translator's Latinization of Al-Khwarizmi's name, and the word "Algorithm" or "Algorism" started to acquire a meaning of any arithmetic based on decimals.
Muhammad ibn Ahmad al-Khwarizmi, in 976, stated that if no number appears in the place of tens in a calculation, a little circle should be used "to keep the rows". This circle was called ṣifr.
Transmission to Europe
The Hindu–Arabic numeral system reached Western Europe in the 11th century, via Al-Andalus, through Spanish Muslims, the Moors, together with knowledge of classical astronomy and instruments like the astrolabe. Gerbert of Aurillac is credited with reintroducing the lost teachings into Catholic Europe. For this reason, the numerals came to be known in Europe as "Arabic numerals". The Italian mathematician Fibonacci or Leonardo of Pisa was instrumental in bringing the system into European mathematics in 1202, stating:After my father's appointment by his homeland as state official in the customs house of Bugia for the Pisan merchants who thronged to it, he took charge; and in view of its future usefulness and convenience, had me in my boyhood come to him and there wanted me to devote myself to and be instructed in the study of calculation for some days. There, following my introduction, as a consequence of marvelous instruction in the art, to the nine digits of the Hindus, the knowledge of the art very much appealed to me before all others, and for it I realized that all its aspects were studied in Egypt, Syria, Greece, Sicily, and Provence, with their varying methods; and at these places thereafter, while on business. I pursued my study in depth and learned the give-and-take of disputation. But all this even, and the algorism, as well as the art of Pythagoras, I considered as almost a mistake in respect to the method of the Hindus . Therefore, embracing more stringently that method of the Hindus, and taking stricter pains in its study, while adding certain things from my own understanding and inserting also certain things from the niceties of Euclid's geometric art. I have striven to compose this book in its entirety as understandably as I could, dividing it into fifteen chapters. Almost everything which I have introduced I have displayed with exact proof, in order that those further seeking this knowledge, with its pre-eminent method, might be instructed, and further, in order that the Latin people might not be discovered to be without it, as they have been up to now. If I have perchance omitted anything more or less proper or necessary, I beg indulgence, since there is no one who is blameless and utterly provident in all things. The nine Indian figures are: 9 8 7 6 5 4 3 2 1. With these nine figures, and with the sign 0... any number may be written.
From the 13th century, manuals on calculation became common in Europe where they were called algorismus after the Persian mathematician al-Khwārizmī. One popular manual was written by Johannes de Sacrobosco in the early 1200s and was one of the earliest scientific books to be printed, in 1488. The practice of calculating on paper using Hindu–Arabic numerals only gradually displaced calculation by abacus and recording with Roman numerals. In the 16th century, Hindu–Arabic numerals became the predominant numerals used in Europe.
Symbols and representations
Today, the numerical digit 0 is usually written as a circle or ellipse. Traditionally, many print typefaces made the capital letter O more rounded than the narrower, elliptical digit 0. Typewriters originally made no distinction in shape between O and 0; some models did not even have a separate key for the digit 0. The distinction came into prominence on modern character displays.A slashed zero is often used to distinguish the number from the letter. The digit 0 with a dot in the center seems to have originated as an option on IBM 3270 displays and has continued with some modern computer typefaces such as Andalé Mono, and in some airline reservation systems. One variation uses a short vertical bar instead of the dot. Some fonts designed for use with computers made the "0" character more squared at the edges, like a rectangle, and the "O" character more rounded. A further distinction is made in falsification-hindering typeface as used on German car number plates by slitting open the digit 0 on the upper right side. In some systems either the letter O or the numeral 0, or both, are excluded from use, to avoid confusion.
Mathematics
The concept of zero plays multiple roles in mathematics: as a digit, it is an important part of positional notation for representing numbers, while it also plays an important role as a number in its own right in many algebraic settings.As a digit
In positional number systems, the digit 0 plays the role of a placeholder, indicating that certain powers of the base do not contribute. For example, the decimal number 205 is the sum of two hundreds and five ones, with the 0 digit indicating that no tens are added. The digit plays the same role in decimal fractions and in the decimal representation of other real numbers and in bases other than 10.Elementary algebra
The number 0 is the smallest nonnegative integer, and the largest nonpositive integer. The natural number following 0 is 1 and no natural number precedes 0. The number 0 may or may not be considered a natural number, but it is an integer, and hence a rational number and a real number. All rational numbers are algebraic numbers, including 0. When the real numbers are extended to form the complex numbers, 0 becomes the origin of the complex plane.The number 0 can be regarded as neither positive nor negative or, alternatively, both positive and negative and is usually displayed as the central number in a number line. Zero is even, and is also an integer multiple of any other integer, rational, or real number. It is neither a prime number nor a composite number: it is not prime because prime numbers are greater than 1 by definition, and it is not composite because it cannot be expressed as the product of two smaller natural numbers.
The following are some basic rules for dealing with the number 0. These rules apply for any real or complex number x, unless otherwise stated.
- Addition: x + 0 = 0 + x = x. That is, 0 is an identity element with respect to addition.
- Subtraction: x − 0 = x and 0 − x = −x.
- Multiplication: x · 0 = 0 · x = 0.
- Division: = 0, for nonzero x. But Division by zero| is undefined, because 0 has no multiplicative inverse, a consequence of the previous rule.
- Exponentiation: x0 = = 1, except that Zero [to the power of zero|the case x = 0] is considered undefined in some contexts. For all positive real x,.
The sum of 0 numbers is 0, and the product of 0 numbers is 1. The factorial 0! evaluates to 1, as a special case of the empty product.
Other uses in mathematics
The role of 0 as the smallest counting number can be generalized or extended in various ways. In set theory, 0 is the cardinality of the empty set : if one does not have any apples, then one has 0 apples. In fact, in certain axiomatic developments of mathematics from set theory, 0 is defined to be the empty set. When this is done, the empty set is the von Neumann cardinal assignment for a set with no elements, which is the empty set. The cardinality function, applied to the empty set, returns the empty set as a value, thereby assigning it 0 elements.Also in set theory, 0 is the lowest ordinal number, corresponding to the empty set viewed as a well-ordered set. In order theory, 0 may denote the least element of a lattice or other partially ordered set.
The role of 0 as additive identity generalizes beyond elementary algebra. In abstract algebra, 0 is commonly used to denote a zero element, which is the identity element for addition and an absorbing element for multiplication. Examples include identity elements of additive groups and vector spaces. Another example is the zero function on a domain. This is the constant function with 0 as its only possible output value, that is, it is the function defined by for all in. As a function from the real numbers to the real numbers, the zero function is the only function that is both even and odd.
The number 0 is also used in several other ways within various branches of mathematics:
- A zero of a function ''f is a point x'' in the domain of the function such that.
- In propositional logic, 0 may be used to denote the truth value false.
- In probability theory, 0 is the smallest allowed value for the probability of any event.
- Category theory introduces the idea of a zero object, often denoted 0, and the related concept of zero morphisms, which generalize the zero function.
Physics
Computer science
Modern computers store information in binary, that is, using an "alphabet" that contains only two symbols, usually chosen to be "0" and "1". Binary coding is convenient for digital electronics, where "0" and "1" can stand for the absence or presence of electrical current in a wire. Computer programmers typically use high-level programming languages that are more intelligible to humans than the binary instructions that are directly executed by the central processing unit. 0 plays various important roles in high-level languages. For example, a Boolean variable stores a value that is either true or false, and 0 is often the numerical representation of false.0 also plays a role in array indexing. The most common practice throughout human history has been to start counting at one, and this is the practice in early classic programming languages such as Fortran and COBOL. However, in the late 1950s LISP introduced zero-based numbering for arrays while Algol 58 introduced completely flexible basing for array subscripts, and most subsequent programming languages adopted one or other of these positions. For example, the elements of an array are numbered starting from 0 in C, so that for an array of n items the sequence of array indices runs from 0 to.
There can be confusion between 0- and 1-based indexing; for example, Java's JDBC indexes parameters from 1 although Java itself uses 0-based indexing.
In C, a byte containing the value 0 serves to indicate where a string of characters ends. Also, 0 is a standard way to refer to a null pointer in code.
In databases, it is possible for a field not to have a value. It is then said to have a null value. For numeric fields it is not the value zero. For text fields this is not blank nor the empty string. The presence of null values leads to three-valued logic. No longer is a condition either true or false, but it can be undetermined. Any computation including a null value delivers a null result.
In mathematics, there is no "positive zero" or "negative zero" distinct from zero; both −0 and +0 represent exactly the same number. However, in some computer hardware signed number representations, zero has two distinct representations, a positive one grouped with the positive numbers and a negative one grouped with the negatives. This kind of dual representation is known as signed zero, with the latter form sometimes called negative zero. These representations include the signed magnitude and ones' complement binary integer representations, and most floating-point number representations.
An epoch, in computing terminology, is the date and time associated with a zero timestamp. The Unix epoch begins the midnight before the first of January 1970. The Classic Mac OS epoch and Palm OS epoch begin the midnight before the first of January 1904.
Many APIs and operating systems that require applications to return an integer value as an exit status typically use zero to indicate success and non-zero values to indicate specific error or warning conditions.
Programmers often use a slashed zero to avoid confusion with the letter "O".