Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Division by zero

From Wikipedia, the free encyclopedia
Class of mathematical expression

For other uses, seeDivision by zero (disambiguation).
Graph showing the diagrammatic representation of limits tending to infinity
The reciprocal functiony =1/x. Asx approaches zero from the right,y tends to positive infinity. Asx approaches zero from the left,y tends to negative infinity.

Inmathematics,division by zero,division where the divisor (denominator) iszero, is a problematic special case. Usingfraction notation, the general example can be written asa0{\displaystyle {\tfrac {a}{0}}}, wherea{\displaystyle a} is the dividend (numerator).

The usual definition of thequotient inelementary arithmetic is the number which yields the dividend whenmultiplied by the divisor. That is,c=ab{\displaystyle c={\tfrac {a}{b}}} is equivalent toc×b=a{\displaystyle c\times b=a}. By this definition, the quotientq=a0{\displaystyle q={\tfrac {a}{0}}} is nonsensical, as the productq×0{\displaystyle q\times 0} is always0{\displaystyle 0} rather than some other numbera{\displaystyle a}. Following the ordinary rules ofelementary algebra while allowing division by zero can create amathematical fallacy, a subtle mistake leading to absurd results. To prevent this, the arithmetic ofreal numbers and more general numerical structures calledfields leaves division by zeroundefined, and situations where division by zero might occur must be treated with care. Since any number multiplied by zero is zero, the expression00{\displaystyle {\tfrac {0}{0}}} is also undefined.

Calculus studies the behavior offunctions in thelimit as their input tends to some value. When areal function can be expressed as a fraction whose denominator tends to zero, the output of the function becomes arbitrarily large, and is said to "tend to infinity", a type ofmathematical singularity. For example, thereciprocal function,f(x)=1x{\displaystyle f(x)={\tfrac {1}{x}}}, tends to infinity asx{\displaystyle x} tends to0{\displaystyle 0}. When both the numerator and the denominator tend to zero at the same input, the expression is said to take anindeterminate form, as the resulting limit depends on the specific functions forming the fraction and cannot be determined from their separate limits.

As an alternative to the common convention of working with fields such as the real numbers and leaving division by zero undefined, it is possible to define the result of division by zero in other ways, resulting in different number systems. For example, the quotienta0{\displaystyle {\tfrac {a}{0}}} can be defined to equal zero; it can be defined to equal a new explicitpoint at infinity, sometimes denoted by theinfinity symbol{\displaystyle \infty }; or it can be defined to result in signed infinity, with positive or negative sign depending on the sign of the dividend. In these number systems division by zero is no longer a special exception per se, but the point or points at infinity involve their own new types of exceptional behavior.

Incomputing, an error may result from an attempt to divide by zero. Depending on the context and thetype of number involved, dividing by zero may evaluate topositive or negative infinity, return a specialnot-a-number value, orcrash the program, among other possibilities.

Elementary arithmetic

[edit]

The meaning of division

[edit]
See also:Quotition and partition

ThedivisionN/D=Q{\displaystyle N/D=Q} can be conceptually interpreted in several ways.[1]

Inquotitive division, the dividendN{\displaystyle N} is imagined to be split up into parts of sizeD{\displaystyle D} (the divisor), and the quotientQ{\displaystyle Q} is the number of resulting parts. For example, imagine ten slices of bread are to be made into sandwiches, each requiring two slices of bread. A total of five sandwiches can be made (102=5{\displaystyle {\tfrac {10}{2}}=5}). Now imagine instead that zero slices of bread are required per sandwich (perhaps alettuce wrap). Arbitrarily many such sandwiches can be made from ten slices of bread, as the bread is irrelevant.[2]

The quotitive concept of division lends itself to calculation by repeatedsubtraction: dividing entails counting how many times the divisor can be subtracted before the dividend runs out. Because no finite number of subtractions of zero will ever exhaust a non-zero dividend, calculating division by zero in this waynever terminates.[3] Such an interminable division-by-zeroalgorithm is physically exhibited by somemechanical calculators.[4]

Inpartitive division, the dividendN{\displaystyle N} is imagined to be split intoD{\displaystyle D} parts, and the quotientQ{\displaystyle Q} is the resulting size of each part. For example, imagine ten cookies are to be divided among two friends. Each friend will receive five cookies (102=5{\displaystyle {\tfrac {10}{2}}=5}). Now imagine instead that the ten cookies are to be divided among zero friends. How many cookies will each friend receive? Since there are no friends, this is an absurdity.[5]

The slope of line in the plane is a ratio of vertical to horizontal coordinate differences. For a vertical line, this is1 : 0, a kind of division by zero.

In another interpretation, the quotientQ{\displaystyle Q} represents theratioN:D{\displaystyle N:D}.[6] For example, a cake recipe might call for tencups of flour and two cups of sugar, a ratio of10:2{\displaystyle 10:2} or, proportionally,5:1{\displaystyle 5:1}. To scale this recipe to larger or smaller quantities of cake, a ratio of flour to sugar proportional to5:1{\displaystyle 5:1} could be maintained, for instance one cup of flour and one-fifth cup of sugar, or fifty cups of flour and ten cups of sugar.[7] Now imagine a sugar-free cake recipe calls for ten cups of flour and zero cups of sugar. The ratio10:0{\displaystyle 10:0}, or proportionally1:0{\displaystyle 1:0}, is perfectly sensible:[8] it just means that the cake has no sugar. However, the question "How many parts flour for each part sugar?" still has no meaningful numerical answer.

A geometrical appearance of the division-as-ratio interpretation is theslope of astraight line in theCartesian plane.[9] The slope is defined to be the "rise" (change in vertical coordinate) divided by the "run" (change in horizontal coordinate) along the line. When this is written using the symmetrical ratio notation, a horizontal line has slope0:1{\displaystyle 0:1} and a vertical line has slope1:0{\displaystyle 1:0}. However, if the slope is taken to be a singlereal number then a horizontal line has slope01=0{\displaystyle {\tfrac {0}{1}}=0} while a vertical line has an undefined slope, since in real-number arithmetic the quotient10{\displaystyle {\tfrac {1}{0}}} is undefined.[10] The real-valued slopeyx{\displaystyle {\tfrac {y}{x}}} of a line through the origin is the vertical coordinate of theintersection between the line and a vertical line at horizontal coordinate1{\displaystyle 1}, dashed black in the figure. The vertical red and dashed black lines areparallel, so they have no intersection in the plane. Sometimes they are said to intersect at apoint at infinity, and the ratio1:0{\displaystyle 1:0} is represented by a new number{\displaystyle \infty };[11] see§ Projectively extended real line below. Vertical lines are sometimes said to have an "infinitely steep" slope.

Inverse of multiplication

[edit]

Division is the inverse ofmultiplication, meaning that multiplying and then dividing by the same non-zero quantity, or vice versa, leaves an original quantity unchanged; for example(5×3)/3=(5/3)×3=5{\displaystyle (5\times 3)/3=(5/3)\times 3=5}.[12] Thus a division problem such as63=?{\displaystyle {\tfrac {6}{3}}={?}} can be solved by rewriting it as an equivalent equation involving multiplication,?×3=6{\displaystyle {?}\times 3=6}, where?{\displaystyle ?} represents the same unknown quantity, and then finding the value for which the statement is true; in this case the unknown quantity is2{\displaystyle 2}, because2×3=6{\displaystyle 2\times 3=6}, so therefore63=2{\displaystyle {\tfrac {6}{3}}=2}.[13]

An analogous problem involving division by zero,60=?{\displaystyle {\tfrac {6}{0}}={?}}, requires determining an unknown quantity satisfying?×0=6{\displaystyle {?}\times 0=6}. However, any number multiplied by zero is zero rather than six, so there exists no number which can substitute for?{\displaystyle ?} to make a true statement.[14]

When the problem is changed to00=?{\displaystyle {\tfrac {0}{0}}={?}}, the equivalent multiplicative statement is?×0=0{\displaystyle {?}\times 0=0}; in this caseany value can be substituted for the unknown quantity to yield a true statement, so there is no single number which can be assigned as the quotient00{\displaystyle {\tfrac {0}{0}}}.

Because of these difficulties, quotients where the divisor is zero are traditionally taken to beundefined, and division by zero is not allowed.[15][16]

Fallacies

[edit]
Further information:Mathematical fallacy

A compelling reason for not allowing division by zero is that allowing it leads tofallacies.

When working with numbers, it is easy to identify an illegal division by zero. For example:

From0×1=0{\displaystyle 0\times 1=0} and0×2=0{\displaystyle 0\times 2=0} one gets0×1=0×2{\displaystyle 0\times 1=0\times 2}. Cancelling0{\displaystyle 0} from both sides yields1=2{\displaystyle 1=2}, a false statement.

The fallacy here arises from the assumption that it is legitimate to cancel0{\displaystyle 0} like any other number, whereas, in fact, doing so is a form of division by0{\displaystyle 0}.

Usingalgebra, it is possible to disguise a division by zero[17] to obtain aninvalid proof. For example:[18]

Letx=1{\displaystyle x=1}. Multiply both sides byx{\displaystyle x} to getx=x2{\displaystyle \textstyle x=x^{2}}. Subtract1{\displaystyle 1} from each side to getx1=x21.{\displaystyle x-1=x^{2}-1.} The right side can be factored,x1=(x+1)(x1).{\displaystyle x-1=(x+1)(x-1).} Dividing both sides byx1{\displaystyle x-1} yields1=x+1.{\displaystyle 1=x+1.} Substitutingx=1{\displaystyle x=1} yields1=2.{\displaystyle 1=2.}

This is essentially the same fallacious computation as the previous numerical version, but the division by zero was obfuscated because we wrote0{\displaystyle 0} asx1{\displaystyle x-1}.

Early attempts

[edit]

TheBrāhmasphuṭasiddhānta ofBrahmagupta (c. 598–668) is the earliest text to treatzero as a number in its own right and to define operations involving zero.[17] According to Brahmagupta,

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.

In 830,Mahāvīra unsuccessfully tried to correct the mistake Brahmagupta made in his bookGanita Sara Samgraha: "A number remains unchanged when divided by zero."[17]

Bhāskara II'sLīlāvatī (12th century) proposed that division by zero results in an infinite quantity,[19]

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.

Historically, one of the earliest recorded references to the mathematical impossibility of assigning a value toa0{\displaystyle {\tfrac {a}{0}}} is contained inAnglo-Irish philosopherGeorge Berkeley's criticism ofinfinitesimal calculus in 1734 inThe Analyst ("ghosts of departed quantities").[20]

Calculus

[edit]

Calculus studies the behavior offunctions using the concept of alimit, the value to which a function's output tends as its input tends to some specific value. The notationlimxcf(x)=L{\displaystyle \textstyle \lim _{x\to c}f(x)=L} means that the value of the functionf{\displaystyle f} can be made arbitrarily close toL{\displaystyle L} by choosingx{\displaystyle x} sufficiently close toc{\displaystyle c}.

In the case where the limit of thereal functionf{\displaystyle f} increases without bound asx{\displaystyle x} tends toc{\displaystyle c}, the function is not defined atc{\displaystyle c}, a type ofmathematical singularity. Instead, the function is said to "tend to infinity", denotedlimxcf(x)={\displaystyle \textstyle \lim _{x\to c}f(x)=\infty }, and itsgraph has the linex=c{\displaystyle x=c} as a verticalasymptote. While such a function is not formally defined forx=c{\displaystyle x=c}, and theinfinity symbol{\displaystyle \infty } in this case does not represent any specificreal number, such limits are informally said to "equal infinity". If the value of the function decreases without bound, the function is said to "tend to negative infinity",{\displaystyle -\infty }. In some cases a function tends to two different values whenx{\displaystyle x} tends toc{\displaystyle c} from above (xc+{\displaystyle x\to c^{+}}) and below (xc{\displaystyle x\to c^{-}}); such a function has two distinctone-sided limits.[21]

A basic example of an infinite singularity is thereciprocal function,f(x)=1/x{\displaystyle f(x)=1/x}, which tends to positive or negative infinity asx{\displaystyle x} tends to0{\displaystyle 0}:limx0+1x=+,limx01x=.{\displaystyle \lim _{x\to 0^{+}}{\frac {1}{x}}=+\infty ,\qquad \lim _{x\to 0^{-}}{\frac {1}{x}}=-\infty .}

In most cases, the limit of a quotient of functions is equal to the quotient of the limits of each function separately,limxcf(x)g(x)=limxcf(x)limxcg(x).{\displaystyle \lim _{x\to c}{\frac {f(x)}{g(x)}}={\frac {\displaystyle \lim _{x\to c}f(x)}{\displaystyle \lim _{x\to c}g(x)}}.}

However, when a function is constructed by dividing two functions whose separate limits are both equal to0{\displaystyle 0}, then the limit of the result cannot be determined from the separate limits, so is said to take anindeterminate form, informally written00{\displaystyle {\tfrac {0}{0}}}. (Another indeterminate form,{\displaystyle {\tfrac {\infty }{\infty }}}, results from dividing two functions whose limits both tend to infinity.) Such a limit may equal any real value, may tend to infinity, or may not converge at all, depending on the particular functions. For example, inlimx1x21x1,{\displaystyle \lim _{x\to 1}{\dfrac {x^{2}-1}{x-1}},} the separate limits of the numerator and denominator are0{\displaystyle 0}, so we have the indeterminate form00{\displaystyle {\tfrac {0}{0}}}, but simplifying the quotient first shows that the limit exists:limx1x21x1=limx1(x1)(x+1)x1=limx1(x+1)=2.{\displaystyle \lim _{x\to 1}{\frac {x^{2}-1}{x-1}}=\lim _{x\to 1}{\frac {(x-1)(x+1)}{x-1}}=\lim _{x\to 1}(x+1)=2.}

Alternative number systems

[edit]

Extended real line

[edit]

Theaffinely extended real numbers are obtained from thereal numbersR{\displaystyle \mathbb {R} } by adding two new numbers+{\displaystyle +\infty } and{\displaystyle -\infty }, read as "positive infinity" and "negative infinity" respectively, and representingpoints at infinity. With the addition of±{\displaystyle \pm \infty }, the concept of a "limit at infinity" can be made to work like a finite limit. When dealing with both positive and negative extended real numbers, the expression1/0{\displaystyle 1/0} is usually left undefined. However, in contexts where only non-negative values are considered, it is often convenient to define1/0=+{\displaystyle 1/0=+\infty }.

Projectively extended real line

[edit]

The setR{}{\displaystyle \mathbb {R} \cup \{\infty \}} is theprojectively extended real line, which is aone-point compactification of the real line. Here{\displaystyle \infty } means an unsigned infinity orpoint at infinity, an infinite quantity that is neither positive nor negative. This quantity satisfies={\displaystyle -\infty =\infty }, which is necessary in this context. In this structure,a0={\displaystyle {\tfrac {a}{0}}=\infty } can be defined for nonzeroa{\displaystyle a}, anda=0{\displaystyle {\tfrac {a}{\infty }}=0} whena{\displaystyle a} is not{\displaystyle \infty }. It is the natural way to view the range of thetangent function and cotangent functions oftrigonometry:tanx{\displaystyle \tan x} approaches the single point at infinity asx{\displaystyle x} approaches either+12π{\displaystyle +{\tfrac {1}{2}}\pi } or12π{\displaystyle -{\tfrac {1}{2}}\pi } from either direction.

This definition leads to many interesting results. However, the resulting algebraic structure is not afield, and should not be expected to behave like one. For example,+{\displaystyle \infty +\infty } is undefined in this extension of the real line.

Riemann sphere

[edit]

The subject ofcomplex analysis applies the concepts of calculus in thecomplex numbers. Of major importance in this subject is theextended complex numbersC{}{\displaystyle \mathbb {C} \cup \{\infty \}}, the set of complex numbers with a single additional number appended, usually denoted by theinfinity symbol{\displaystyle \infty } and representing apoint at infinity, which is defined to be contained in everyexterior domain, making those itstopologicalneighborhoods.

This can intuitively be thought of as wrapping up the infinite edges of the complex plane and pinning them together at the single point{\displaystyle \infty }, aone-point compactification, making the extended complex numbers topologically equivalent to asphere. This equivalence can be extended to a metrical equivalence by mapping each complex number to a point on the sphere via inversestereographic projection, with the resultingspherical distance applied as a new definition of distance between complex numbers; and in general the geometry of the sphere can be studied using complex arithmetic, and conversely complex arithmetic can be interpreted in terms of spherical geometry. As a consequence, the set of extended complex numbers is often called theRiemann sphere. The set is usually denoted by the symbol for the complex numbers decorated by an asterisk, overline, tilde, or circumflex, for exampleC^=C{}{\displaystyle {\hat {\mathbb {C} }}=\mathbb {C} \cup \{\infty \}}.

In the extended complex numbers, for any nonzero complex numberz{\displaystyle z}, ordinary complex arithmetic is extended by the additional rulesz0={\displaystyle {\tfrac {z}{0}}=\infty },z=0{\displaystyle {\tfrac {z}{\infty }}=0},+0={\displaystyle \infty +0=\infty },+z={\displaystyle \infty +z=\infty },z={\displaystyle \infty \cdot z=\infty }. However,00{\displaystyle {\tfrac {0}{0}}},{\displaystyle {\tfrac {\infty }{\infty }}}, and0{\displaystyle 0\cdot \infty } are left undefined.

Higher mathematics

[edit]

The four basic operations – addition, subtraction, multiplication and division – as applied to whole numbers (positive integers), with some restrictions, in elementary arithmetic are used as a framework to support the extension of the realm of numbers to which they apply. For instance, to make it possible to subtract any whole number from another, the realm of numbers must be expanded to the entire set ofintegers in order to incorporate the negative integers. Similarly, to support division of any integer by any other, the realm of numbers must expand to therational numbers. During this gradual expansion of the number system, care is taken to ensure that the "extended operations", when applied to the older numbers, do not produce different results. Loosely speaking, since division by zero has no meaning (isundefined) in the whole number setting, this remains true as the setting expands to thereal or evencomplex numbers.[22]

As the realm of numbers to which these operations can be applied expands there are also changes in how the operations are viewed. For instance, in the realm of integers, subtraction is no longer considered a basic operation since it can be replaced by addition of signed numbers.[23] Similarly, when the realm of numbers expands to include the rational numbers, division is replaced by multiplication by certain rational numbers. In keeping with this change of viewpoint, the question, "Why can't we divide by zero?", becomes "Why can't a rational number have a zero denominator?". Answering this revised question precisely requires close examination of the definition of rational numbers.

In the modern approach to constructing the field of real numbers, the rational numbers appear as an intermediate step in the development that is founded onset theory. First, the natural numbers (including zero) are established on an axiomatic basis such asPeano's axiom system and then this is expanded to thering of integers. The next step is to define the rational numbers keeping in mind that this must be done using only the sets and operations that have already been established, namely, addition, multiplication and the integers. Starting with the set ofordered pairs of integers,{(a,b)}{\displaystyle \{(a,\,b)\}} withb0{\displaystyle b\neq 0}, define abinary relation on this set by(a,b)(c,d){\displaystyle (a,b)\simeq (c,d)} if and only ifad=bc{\displaystyle ad=bc}. This relation is shown to be anequivalence relation and itsequivalence classes are then defined to be the rational numbers. It is in the formal proof that this relation is an equivalence relation that the requirement that the second coordinate is not zero is needed (for verifyingtransitivity).[24][25][26]

Although division by zero cannot be sensibly defined with real numbers and integers, it is possible to consistently define it, or similar operations, in other mathematical structures.

Non-standard analysis

[edit]

In thehyperreal numbers, division by zero is still impossible, but division by non-zeroinfinitesimals is possible.[27] The same holds true in thesurreal numbers.[28]

Distribution theory

[edit]

Indistribution theory one can extend the function1x{\displaystyle {\tfrac {1}{x}}} to a distribution on the whole space of real numbers (in effect by usingCauchy principal values). It does not, however, make sense to ask for a "value" of this distribution atx=0{\displaystyle x=0}; a sophisticated answer refers to thesingular support of the distribution.

Linear algebra

[edit]

Inmatrix algebra, square or rectangular blocks of numbers are manipulated as though they were numbers themselves: matrices can beadded andmultiplied, and in some cases, a version of division also exists. Dividing by a matrix means, more precisely, multiplying by itsinverse. Not all matrices have inverses.[29] For example, amatrix containing only zeros is not invertible.

One can define a pseudo-division, by settinga/b=ab+{\displaystyle \textstyle a/b=ab^{+}}, in whichb+{\displaystyle \textstyle b^{+}} represents thepseudoinverse ofb{\displaystyle b}. It can be proven that ifb1{\displaystyle \textstyle b^{-1}} exists, thenb+=b1{\displaystyle \textstyle b^{+}=b^{-1}}. Ifb=0{\displaystyle b=0}, thenb+=0{\displaystyle \textstyle b^{+}=0}.

Abstract algebra

[edit]

Inabstract algebra, the integers, the rational numbers, the real numbers, and the complex numbers can be abstracted to more general algebraic structures, such as acommutative ring, which is a mathematical structure where addition, subtraction, and multiplication behave as they do in the more familiar number systems, but division may not be defined. Adjoining a multiplicative inverses to a commutative ring is calledlocalization. However, the localization of every commutative ring at zero is thetrivial ring, where0=1{\displaystyle 0=1}, so nontrivial commutative rings do not have inverses at zero, and thus division by zero is undefined for nontrivial commutative rings.

Nevertheless, any number system that forms acommutative ring can be extended to a structure called awheel in which division by zero is always possible.[30] However, the resulting mathematical structure is no longer a commutative ring, as multiplication no longer distributes over addition. Furthermore, in a wheel, division of an element by itself no longer results in the multiplicative identity element1{\displaystyle 1}, and if the original system was anintegral domain, the multiplication in the wheel no longer results in acancellative semigroup.

The concepts applied to standard arithmetic are similar to those in more general algebraic structures, such asrings andfields. In a field, every nonzero element is invertible under multiplication; as above, division poses problems only when attempting to divide by zero. This is likewise true in askew field (which for this reason is called adivision ring). However, in other rings, division by nonzero elements may also pose problems. For example, the ringZ/6Z{\displaystyle \mathbf {Z} /6\mathbf {Z} } of integersmodulo 6. The meaning of the expression22{\displaystyle {\tfrac {2}{2}}} should be the solutionx{\displaystyle x} of the equation2x=2{\displaystyle 2x=2}. But in the ringZ/6Z{\displaystyle \mathbf {Z} /6\mathbf {Z} },2{\displaystyle 2} is azero divisor. This equation has two distinct solutions,x=1{\displaystyle x=1} andx=4{\displaystyle x=4}, so the expression22{\displaystyle {\tfrac {2}{2}}} isundefined.

In field theory, the expressionab{\displaystyle {\tfrac {a}{b}}} is only shorthand for the formal expressionab1{\displaystyle \textstyle ab^{-1}}, whereb1{\displaystyle \textstyle b^{-1}} is the multiplicative inverse ofb{\displaystyle b}. Since the field axioms only guarantee the existence of such inverses for nonzero elements, this expression has no meaning whenb{\displaystyle b} is zero. Modern texts, which define fields as a special type of ring, include the axiom01{\displaystyle 0\neq 1} for fields (or its equivalent) so that thezero ring is excluded from being a field. In the zero ring, division by zero is possible, which shows that the other field axioms alone are not sufficient to exclude division by zero in defining a field.

Computer arithmetic

[edit]

Floating-point arithmetic

[edit]

In computing, most numerical calculations are done withfloating-point arithmetic, which since the 1980s has been standardized by theIEEE 754 specification. In IEEE floating-point arithmetic, numbers are represented using a sign (positive or negative), a fixed-precisionsignificand and an integerexponent. Numbers whose exponent is too large to represent instead "overflow" to positive or negativeinfinity (+∞ or −∞), while numbers whose exponent is too small to represent instead "underflow" topositive or negative zero (+0 or −0). ANaN (not a number) value represents undefined results.

In IEEE arithmetic, division of 0/0 or ∞/∞ results in NaN, but otherwise division always produces a well-defined result. Dividing any non-zero number by positive zero (+0) results in an infinity of the same sign as the dividend. Dividing any non-zero number bynegative zero (−0) results in an infinity of the opposite sign as the dividend. This definition preserves the sign of the result in case ofarithmetic underflow.[31]

For example, using single-precision IEEE arithmetic, ifx=2149{\displaystyle \textstyle x=-2^{-149}}, thenx/2{\displaystyle x/2} underflows to0{\displaystyle -0}, and dividing1{\displaystyle 1} by this result produces1/(x/2)={\displaystyle 1/(x/2)=-\infty }. The exact result2150{\displaystyle \textstyle -2^{150}} is too large to represent as a single-precision number, so an infinity of the same sign is used instead to indicate overflow.

Integer arithmetic

[edit]
Handheld calculators, such as thisTI-86, typically halt and display an error message after an attempt to divide by zero.

Integer division by zero is usually handled differently from floating point since there is no integer representation for the result.CPUs differ in behavior: for instancex86 processors trigger ahardware exception, whilePowerPC processors silently generate an incorrect result for the division and continue, andARM processors can either cause a hardware exception or return zero.[32] Because of this inconsistency between platforms, theC andC++programming languages consider the result of dividing by zeroundefined behavior.[33] In typicalhigher-level programming languages, such asPython,[34] anexception is raised for attempted division by zero, which can be handled in another part of the program.

In proof assistants

[edit]

Manyproof assistants, such asRocq andLean, define 1/0 = 0. This is due to the requirement that all functions aretotal. Such a definition does not create contradictions, as further manipulations (such ascancelling out) still require that the divisor is non-zero.[35][36]

Historical accidents

[edit]
  • On 21 September 1997, a division by zero error in the "Remote Data Base Manager" aboardUSSYorktown (CG-48) brought down all the machines on the network, causing the ship's propulsion system to fail.[37][38]

See also

[edit]

Notes

[edit]
  1. ^Cheng 2023, pp. 75–83.
  2. ^Zazkis & Liljedahl 2009, p. 52–53.
  3. ^Zazkis & Liljedahl 2009, p. 55–56.
  4. ^Kochenburger, Ralph J.; Turcio, Carolyn J. (1974),Computers in Modern Society, Santa Barbara: Hamilton,Some other operations, including division, can also be performed by the desk calculator (but don't try to divide by zero; the calculator never will stop trying to divide until stopped manually).
    For a video demonstration, see:What happens when you divide by zero on a mechanical calculator?, 7 Mar 2021, retrieved2024-01-06 – via YouTube
  5. ^Zazkis & Liljedahl 2009, pp. 53–54, gives an example of a king's heirs equally dividing their inheritance of 12 diamonds, and asks what would happen in the case that all of the heirs died before the king's will could be executed.
  6. ^In China, Taiwan, and Japan, school textbooks typically distinguish between theratioN:D{\displaystyle N:D} and thevalue of the ratioND{\displaystyle {\tfrac {N}{D}}}. By contrast in the USA textbooks typically treat them as two notations for the same thing.
    Lo, Jane-Jane; Watanabe, Tad; Cai, Jinfa (2004), "Developing Ratio Concepts: An Asian Perspective",Mathematics Teaching in the Middle School,9 (7):362–367,doi:10.5951/MTMS.9.7.0362,JSTOR 41181943
  7. ^Cengiz, Nesrin; Rathouz, Margaret (2018), "Making Sense of Equivalent Ratios",Mathematics Teaching in the Middle School,24 (3):148–155,doi:10.5951/mathteacmiddscho.24.3.0148,JSTOR 10.5951/mathteacmiddscho.24.3.0148,S2CID 188092067
  8. ^Clark, Matthew R.; Berenson, Sarah B.; Cavey, Laurie O. (2003), "A comparison of ratios and fractions and their roles as tools in proportional reasoning",The Journal of Mathematical Behavior,22 (3):297–317,doi:10.1016/S0732-3123(03)00023-3
  9. ^Cheng, Ivan (2010), "Fractions: A New Slant on Slope",Mathematics Teaching in the Middle School,16 (1):34–41,doi:10.5951/MTMS.16.1.0034,JSTOR 41183440
  10. ^Cavey, Laurie O.; Mahavier, W. Ted (2010), "Seeing the potential in students' questions",The Mathematics Teacher,104 (2):133–137,doi:10.5951/MT.104.2.0133,JSTOR 20876802
  11. ^Wegman, Edward J.; Said, Yasmin H. (2010), "Natural homogeneous coordinates",Wiley Interdisciplinary Reviews: Computational Statistics,2 (6):678–685,doi:10.1002/wics.122,S2CID 121947341
  12. ^Robinson, K. M.; LeFevre, J. A. (2012), "The inverse relation between multiplication and division: Concepts, procedures, and a cognitive framework",Educational Studies in Mathematics,79 (3):409–428,doi:10.1007/s10649-011-9330-5,JSTOR 41413121
  13. ^Cheng 2023, p. 78;Zazkis & Liljedahl 2009, p. 55
  14. ^Zazkis & Liljedahl 2009, p. 55.
  15. ^Cheng 2023, pp. 82–83.
  16. ^Bunch 1982, p. 14
  17. ^abcKaplan, Robert (1999),The Nothing That Is: A Natural History of Zero, New York: Oxford University Press, pp. 68–75,ISBN 978-0-19-514237-2
  18. ^Bunch 1982, p. 15
  19. ^Roy, Rahul (Jan 2003),"Babylonian Pythagoras' Theorem, the Early History of Zero and a Polemic on the Study of the History of Science",Resonance,8 (1):30–40,doi:10.1007/BF02834448
  20. ^Cajori, Florian (1929), "Absurdities due to division by zero: An historical note",The Mathematics Teacher,22 (6):366–368,doi:10.5951/MT.22.6.0366,JSTOR 27951153.
  21. ^Herman, Edwin;Strang, Gilbert; et al. (2023),"2.2 The Limit of a Function",Calculus, vol. 1, Houston: OpenStax, p. 454,ISBN 978-1-947172-13-5,OCLC 1022848630
  22. ^Klein 1925, p. 63
  23. ^Klein 1925, p. 26
  24. ^Schumacher 1996, p. 149
  25. ^Hamilton 1982, p. 19
  26. ^Henkin et al. 2012, p. 292
  27. ^Keisler, H. Jerome (2023) [1986],Elementary Calculus: An Infinitesimal Approach, Prindle, Weber & Schmidt, pp. 29–30
  28. ^Conway, John H. (2000) [1976],On Numbers and Games (2nd ed.), CRC Press, p. 20,ISBN 9781568811277
  29. ^Gbur, Greg (2011),Mathematical Methods for Optical Physics and Engineering, Cambridge University Press, pp. 88–93,Bibcode:2011mmop.book.....G,ISBN 978-0-521-51610-5
  30. ^Carlström, Jesper (2004),"Wheels: On Division by Zero",Mathematical Structures in Computer Science,14 (1):143–184,doi:10.1017/S0960129503004110
  31. ^Cody, W. J. (Mar 1981), "Analysis of Proposals for the Floating-Point Standard",Computer,14 (3): 65,doi:10.1109/C-M.1981.220379,S2CID 9923085,With appropriate care to be certain that the algebraic signs are not determined by rounding error, the affine mode preserves order relations while fixing up overflow. Thus, for example, the reciprocal of a negative number which underflows is still negative.
  32. ^"Divide instructions",ARMv7-M Architecture Reference Manual (Version D ed.), Arm Limited, 2010, retrieved2024-06-12
  33. ^Wang, Xi; Chen, Haogang; Cheung, Alvin; Jia, Zhihao; Zeldovich, Nickolai; Kaashoek, M. Frans, "Undefined behavior: what happened to my code?",APSYS '12: Proceedings of the Asia-Pacific Workshop on Systems, APSYS '12, Seoul, 23–24 July 2012, New York: Association for Computing Machinery,doi:10.1145/2349896.2349905,hdl:1721.1/86949,ISBN 978-1-4503-1669-9
  34. ^"Built-in Exceptions",Python 3 Library Reference, Python Software Foundation, § "Concrete exceptions – exceptionZeroDivisionError", retrieved2024-01-22
  35. ^Tanter, Éric; Tabareau, Nicolas (2015), "Gradual certified programming in coq",DLS 2015: Proceedings of the 11th Symposium on Dynamic Languages, Association for Computing Machinery,arXiv:1506.04205,doi:10.1145/2816707.2816710,The standard division function on natural numbers in Coq, div, is total and pure, but incorrect: when the divisor is 0, the result is 0.
  36. ^Buzzard, Kevin (5 Jul 2020),"Division by zero in type theory: a FAQ",Xena Project (Blog), retrieved2024-01-21
  37. ^Stutz, Michael (24 Jul 1998),"Sunk by Windows NT",Wired News,archived from the original on 1999-04-29
  38. ^William Kahan (14 Oct 2011),Desperately Needed Remedies for the Undebuggability of Large Floating-Point Computations in Science and Engineering(PDF)

Sources

[edit]

Further reading

[edit]
Retrieved from "https://en.wikipedia.org/w/index.php?title=Division_by_zero&oldid=1324488187"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp