The absolute value of a

complex number z=(r,i) is |z| or

abs(z), and can be found using good old

trigonometry: |z| =

sqrt(r

^{2} + i

^{2})

The absolute value of an n-dimentional vector v = (x_{1}, x_{2}, ... , x_{n}) can similarly be found thus: |v| = sqrt(x_{1}^{2} + x_{2}^{2} + ... + x_{n}^{2})