This site is supported by donations to The OEIS Foundation.

# Absolute value

Jump to: navigation, search

This article page is a stub, please help by expanding it.

The absolute value (abs(x), or ${\displaystyle \scriptstyle |x|\,}$) of a real number ${\displaystyle \scriptstyle x\,}$ is its distance from 0

${\displaystyle |x|\equiv \operatorname {sgn}(x)\cdot x=([x\geq 0]-[x\leq 0])\cdot x,\quad x\in \mathbb {R} ,\,}$

where ${\displaystyle \scriptstyle \operatorname {sgn}(x)\,}$ is the sign function and ${\displaystyle \scriptstyle [\cdot ]\,}$ is the Iverson bracket.

On the real number line, this means if ${\displaystyle \scriptstyle x\,}$ is positive, then ${\displaystyle \scriptstyle |x|\,=\,(+1)\,x\,}$, while if ${\displaystyle \scriptstyle x\,}$ is negative, then ${\displaystyle \scriptstyle |x|\,=\,(-1)\,x\,}$.

For example, the absolute value of the first Stieltjes constant, –0.0728158454836767248..., is 0.0728158454836767248...

## Complex norm

The complex norm (or complex modulus) ${\displaystyle \scriptstyle |z|\,}$ of a complex number ${\displaystyle \scriptstyle z\,=\,x+iy\,}$ is its distance from 0

${\displaystyle |z|\equiv {\sqrt {x^{2}+y^{2}}},\quad z\in \mathbb {C} .\,}$

On the complex plane, all numbers with absolute value ${\displaystyle \scriptstyle |z|\,}$ can be found by drawing a circle centered at 0 with radius ${\displaystyle \scriptstyle |z|\,}$. For example, the following diagram shows the complex numbers with absolute value of 5

Note that by symmetry there are ${\displaystyle \scriptstyle 4+8k,\,k\,\geq \,0,\,}$ Gaussian integers with absolute value ${\displaystyle \scriptstyle c\,}$, i.e.

${\displaystyle \{c,ci,-c,-ci\}~\cup _{j=1}^{k}~\{a_{j}+b_{j}i,a_{j}-b_{j}i,-a_{j}+b_{j}i,-a_{j}-b_{j}i,b_{j}+a_{j}i,b_{j}-a_{j}i,-b_{j}+a_{j}i,-b_{j}-a_{j}i\},\,}$

where ${\displaystyle \scriptstyle k\,}$ is the number of Pythagorean triples that correspond to the hypotenuse ${\displaystyle \scriptstyle c.\,}$

Note that ${\displaystyle \scriptstyle k\,>\,0\,}$ only if ${\displaystyle \scriptstyle c\,}$ corresponds to the hypotenuse in a Pythagorean triple (i.e. ${\displaystyle \scriptstyle c^{2}\,=\,a^{2}+b^{2}\,}$ has a solution in nonzero rational integers, see A009000). If ${\displaystyle \scriptstyle c\,}$ does not correspond to the hypotenuse in a Pythagorean triple there are only four Gaussian integers (two purely real numbers and two purely imaginary numbers) having the specified absolute value.

The diagram above shows red dots for the twelve Gaussian integers having an absolute value of 5.

## See also

• {{sgn}} (mathematical function template)
• {{abs}} (mathematical function template)