division_by_zero

Division by zero

Historical accidents

  • On September 21, 1997, a division by zero error in the “Remote Data Base Manager” aboard USS ''Yorktown'' (CG-48) brought down all the machines on the network, causing the ship's propulsion system to fail.1)2)
Snippet from Wikipedia: Division by zero

In mathematics, division by zero, division where the divisor (denominator) is zero, is a unique and problematic special case. Using fraction notation, the general example can be written as a 0 {\displaystyle {\tfrac {a}{0}}} , where a {\displaystyle a} is the dividend (numerator).

The usual definition of the quotient in elementary arithmetic is the number which yields the dividend when multiplied by the divisor. That is, c = a b {\displaystyle c={\tfrac {a}{b}}} is equivalent to c b = a . {\displaystyle c\cdot b=a.} By this definition, the quotient q = a 0 {\displaystyle q={\tfrac {a}{0}}} is nonsensical, as the product q 0 {\displaystyle q\cdot 0} is always 0 {\displaystyle 0} rather than some other number a . {\displaystyle a.} Following the ordinary rules of elementary algebra while allowing division by zero can create a mathematical fallacy, a subtle mistake leading to absurd results. To prevent this, the arithmetic of real numbers and more general numerical structures called fields leaves division by zero undefined, and situations where division by zero might occur must be treated with care. Since any number multiplied by zero is zero, the expression 0 0 {\displaystyle {\tfrac {0}{0}}} is also undefined.

Calculus studies the behavior of functions in the limit as their input tends to some value. When a real 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 of mathematical singularity. For example, the reciprocal function, f ( x ) = 1 x , {\displaystyle f(x)={\tfrac {1}{x}},} tends to infinity as x {\displaystyle x} tends to 0. {\displaystyle 0.} When both the numerator and the denominator tend to zero at the same input, the expression is said to take an indeterminate 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 quotient a 0 {\displaystyle {\tfrac {a}{0}}} can be defined to equal zero; it can be defined to equal a new explicit point at infinity, sometimes denoted by the infinity 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.

In computing, an error may result from an attempt to divide by zero. Depending on the context and the type of number involved, dividing by zero may evaluate to positive or negative infinity, return a special not-a-number value, or crash the program, among other possibilities.

2)
http://www.cs.berkeley.edu/~wkahan/Boulder.pdf, Desperately Needed Remedies for the Undebuggability of Large Floating-Point Computations in Science and Engineering, William Kahan, 14 October 2011
division_by_zero.txt · Last modified: 2024/05/01 03:58 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki