Absolute value
From Wikipedia, the free encyclopedia
|
In mathematics, the absolute value (or modulus[1] which is Latin for a small measure) of a real number is its numerical value without regard to its sign. So, for example, 3 is the absolute value of both 3 and −3. In computer programming, the mathematical function used to perform this calculation is usually given the name abs(). Generalizations of the absolute value for real numbers occur in a wide variety of mathematical settings. For example an absolute value is also defined for the complex numbers, the quaternions, ordered rings, fields and vector spaces. The absolute value is closely related to the notions of magnitude, distance, and norm in various mathematical and physical contexts.
Real numbersFor any real number a the absolute value or modulus of a is denoted[2] by | a | and is defined as
From a geometric point of view, the absolute value of a real number is the distance along the real number line of that number from zero, and more generally the absolute value of the difference of two real numbers is the distance between them. Indeed the notion of an abstract distance function in mathematics can be seen to be a generalization of the absolute value of the difference (see "Distance" below). The following proposition, gives an identity which is sometimes used as an alternative (and equivalent) definition of the absolute value: PROPOSITION 1:
PROPOSITION 2:
Other important properties of the absolute value include: PROPOSITION 3:
Two other useful inequalities are:
Complex numbersImage:Complex conjugate picture.svg
The absolute value of a complex number Failed to parse (Missing texvc executable; please see math/README to configure.): z
is the distance Failed to parse (Missing texvc executable; please see math/README to configure.): r
from Failed to parse (Missing texvc executable; please see math/README to configure.): z
to the origin. It is also seen in the picture that Failed to parse (Missing texvc executable; please see math/README to configure.): z
and Failed to parse (Missing texvc executable; please see math/README to configure.): \bar{z}
have the same absolute value.Since the complex numbers are not ordered, the definition given above for the real absolute value cannot be directly generalized for a complex number. However the identity given in Proposition 1:
can be seen as motivating the following definition. For any complex number
is denoted Failed to parse (Missing texvc executable; please see math/README to configure.): |z|, and is defined as
The complex absolute value shares all the properties of the real absolute value given in Propositions 2 and 3 above. In addition, If
The latter formula is the complex analogue of proposition 1 mentioned above in the real case... Since the positive reals form a subgroup of the complex numbers under multiplication, we may think of absolute value as an endomorphism of the multiplicative group of the complex numbers. Absolute value functionsThe real absolute value function is continuous everywhere. It is differentiable everywhere except for x = 0. It is monotonically decreasing on the interval (-∞, 0] and monotonically increasing on the interval [0, ∞). Since a real number and its negative have the same absolute value, it is an even function, and is hence not invertible. The complex absolute value function is continuous everywhere but (complex) differentiable nowhere (One way to see this is to show that it does not obey the Cauchy-Riemann equations). Both the real and complex functions are idempotent. It is a nonlinear function. Ordered ringsThe definition of absolute value given for real numbers above can easily be extended to any ordered ring. That is, if Failed to parse (Missing texvc executable; please see math/README to configure.): a is an element of an ordered ring Failed to parse (Missing texvc executable; please see math/README to configure.): R , then the absolute value of Failed to parse (Missing texvc executable; please see math/README to configure.): a , denoted by Failed to parse (Missing texvc executable; please see math/README to configure.): |a| , is defined to be:
is the additive inverse of Failed to parse (Missing texvc executable; please see math/README to configure.): a , and Failed to parse (Missing texvc executable; please see math/README to configure.): 0 is the additive identity element. DistanceThe absolute value is closely related to the idea of distance. As noted above, the absolute value of a real or complex number is the distance from that number to the origin, along the real number line, for real numbers, or in the complex plane, for complex numbers, and more generally, the absolute value of the difference of two real or complex numbers is the distance between them. The standard Euclidean distance between two points
since if Failed to parse (Missing texvc executable; please see math/README to configure.): a, Failed to parse (Missing texvc executable; please see math/README to configure.): b are real, then by Proposition 1,
The above shows that the "absolute value" distance for the real numbers or the complex numbers, agrees with the standard Euclidean distance they inherit as a result of considering them as the one and two-dimensional Euclidean spaces respectively. The properties of the absolute value of the difference of two real or complex numbers: non-negativity, identity of indiscernibles, symmetry and the triangle inequality given in Propositions 2 and 3 above, can be seen to motivate the more general notion of a distance function as follows: A real valued function Failed to parse (Missing texvc executable; please see math/README to configure.): d on a set Failed to parse (Missing texvc executable; please see math/README to configure.): X \times X is called a distance function (or a metric) for Failed to parse (Missing texvc executable; please see math/README to configure.): X , if it satisfies the following four axioms:
DerivativesThe derivative of the real absolute value function is the signum function, sgn(x), which is defined as
The absolute value function is also integrable. Its antiderivative is
. FieldsThe fundamental properties of the absolute value for real numbers given in Proposition 2 above, can be used to generalize the notion of absolute value to an arbitrary field, as follows. A real-valued function Failed to parse (Missing texvc executable; please see math/README to configure.): v on a field Failed to parse (Missing texvc executable; please see math/README to configure.): F is called an absolute value (also a modulus, magnitude, value, or valuation) if it satisfies the following four axioms:
Where Failed to parse (Missing texvc executable; please see math/README to configure.): \mathbf{0} denotes the additive identity element of Failed to parse (Missing texvc executable; please see math/README to configure.): F . It follows from positive-definiteness and multiplicativeness that Failed to parse (Missing texvc executable; please see math/README to configure.): v(\mathbf{1}) = 1 , where Failed to parse (Missing texvc executable; please see math/README to configure.): \mathbf{1} denotes the multiplicative identity element of Failed to parse (Missing texvc executable; please see math/README to configure.): F . The real and complex absolute values defined above are examples of absolute values for an arbitrary field. If Failed to parse (Missing texvc executable; please see math/README to configure.): v is an absolute value on Failed to parse (Missing texvc executable; please see math/README to configure.): F , then the function Failed to parse (Missing texvc executable; please see math/README to configure.): d on Failed to parse (Missing texvc executable; please see math/README to configure.): F \times F , defined by Failed to parse (Missing texvc executable; please see math/README to configure.): d(a, b) = v(a - b) , is a metric and the following are equivalent:
satisfies the ultrametric inequality Failed to parse (Missing texvc executable; please see math/README to configure.): d(x, y) \le \mathrm{max}\{d(x, z), d(y, z)\}.
is bounded in R.
for every Failed to parse (Missing texvc executable; please see math/README to configure.): n \in \mathbb{N}.
for all Failed to parse (Missing texvc executable; please see math/README to configure.): a \in F.
for all Failed to parse (Missing texvc executable; please see math/README to configure.): a, b \in F.
Vector spacesAgain the fundamental properties of the absolute value for real numbers can be used, with a slight modification, to generalize the notion to an arbitrary vector space. A real valued function ||·|| on a vector space Failed to parse (Missing texvc executable; please see math/README to configure.): V over a field Failed to parse (Missing texvc executable; please see math/README to configure.): F , is called an absolute value (or more usually a norm) if it satisfies the following axioms: For all Failed to parse (Missing texvc executable; please see math/README to configure.): a in Failed to parse (Missing texvc executable; please see math/README to configure.): F , and Failed to parse (Missing texvc executable; please see math/README to configure.): \mathbf{v} , Failed to parse (Missing texvc executable; please see math/README to configure.): \mathbf{u} in Failed to parse (Missing texvc executable; please see math/README to configure.): V ,
The norm of a vector is also called its length or magnitude. In the case of Euclidean space Rn, the function defined by
AlgorithmsIn the C programming language, the
int abs (int i)
{
if (i < 0)
return -i;
else
return i;
}
The floating-point versions are trickier, as they have to contend with special codes for infinity and not-a-numbers. The function for absolute value in Fortran, Matlab, and GNU Octave is Using assembly language, it is possible to take the absolute value of a register in just three instructions (example shown for a 32-bit register on an x86 architecture, Intel syntax): cdq xor eax, edx sub eax, edx
Notes
References
See alsobs:Apsolutna vrijednost bg:Абсолютна стойност ca:Valor absolut cs:Absolutní hodnota de:Betragsfunktion et:Absoluutväärtus es:Valor absoluto eo:Absoluta valoro fa:قدر مطلق (ریاضی) fr:Valeur absolue gl:Valor absoluto zh-classical:絕對值 ko:절대값 is:Algildi it:Valore assoluto he:ערך מוחלט hu:Abszolútérték-függvény nl:Absolute waarde ja:絶対値 no:Absoluttverdi nn:Absoluttverdi pl:Wartość bezwzględna pt:Valor absoluto ru:Абсолютная величина sk:Absolútna hodnota sl:Absolutna vrednost sr:Апсолутна вредност sh:Apsolutna vrijednost fi:Itseisarvo sv:Absolutbelopp th:ค่าสัมบูรณ์ vi:Giá trị tuyệt đối tr:Mutlak değer uk:Абсолютна величина |



