absolute value

(idea) by haggai Tue Apr 04 2000 at 18:47:36
The absolute value of a real number x, often written |x| in mathematics or abs(x) in various programming languages is x if x>=0, and -x if x < 0.
(thing) by CentrX Sun May 21 2000 at 18:25:04
The magnitude of a real number, disregarding its positive or negative sign: the absolute value of -4 or +4, written |-4| or |+4|, is 4.
(idea) by lazyr Thu Sep 07 2000 at 11:57:47
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(r2 + i2)

The absolute value of an n-dimentional vector v = (x1, x2, ... , xn) can similarly be found thus: |v| = sqrt(x12 + x22 + ... + xn2)

(idea) by xriso Fri Mar 09 2001 at 0:17:20
In simple terms, the absolute value of a number is its "distance" from the number 0.

With real numbers, this is quite simple, but when you have the "2-dimensionality" of a complex number (represented as a + bi, where ii=-1), you must use the pythagorean theorem to find the hypotenuse, which is the distance from 0.

|a + bi| = sqrt(aa + bb)

Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.