In the real numbers,
zero does not have a reciprocal (
division by zero is
undefined) because no real number multiplied by 0 produces 1 (the product of any number with zero is zero). With the exception of zero, reciprocals of every
real number are real, reciprocals of every
rational number are rational, and reciprocals of every
complex number are complex. The property that every element other than zero has a multiplicative inverse is part of the definition of a
field, of which these are all examples. On the other hand, no
integer other than 1 and −1 has an integer reciprocal, and so the integers are not a field. In
modular arithmetic, the
modular multiplicative inverse of
a is also defined: it is the number
x such that . This multiplicative inverse exists
if and only if a and
n are
coprime. For example, the inverse of 3 modulo 11 is 4 because . The
extended Euclidean algorithm may be used to compute it. The
sedenions are an algebra in which every nonzero element has a multiplicative inverse, but which nonetheless has divisors of zero, that is, nonzero elements
x,
y such that
xy = 0. A
square matrix has an inverse
if and only if its
determinant has an inverse in the coefficient
ring. The linear map that has the matrix
A−1 with respect to some base is then the inverse function of the map having
A as matrix in the same base. Thus, the two distinct notions of the inverse of a function are strongly related in this case, but they still do not coincide, since the multiplicative inverse of
Ax would be (
Ax)−1, not
A−1x. These two notions of an inverse function do sometimes coincide, for example for the function f(x)=x^i=e^{i\ln(x)} where \ln is the
principal branch of the complex logarithm and e^{-\pi}: :((1/f)\circ f)(x)=(1/f)(f(x))=1/(f(f(x)))=1/e^{i\ln(e^{i\ln(x)})}=1/e^{ii\ln(x)}=1/e^{-\ln(x)}=x. The
trigonometric functions are related by the reciprocal identity: the cotangent is the reciprocal of the tangent; the secant is the reciprocal of the cosine; the cosecant is the reciprocal of the sine. A ring in which every nonzero element has a multiplicative inverse is a
division ring; likewise an
algebra in which this holds is a
division algebra. == Complex numbers ==