Science Fair Projects Ideas - Absolute value

All Science Fair Projects

      

Science Fair Project Encyclopedia for Schools!

  Search    Browse    Forum  Coach    Links    Editor    Help    Tell-a-Friend    Encyclopedia    Dictionary     

Science Fair Project Encyclopedia

For information on any area of science that interests you,
enter a keyword (eg. scientific method, molecule, cloud, carbohydrate etc.).
Or else, you can start by choosing any of the categories below.

Absolute value


In mathematics, the absolute value (or modulus) 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, and 0 is the only absolute value of 0.

Contents

Definition

It can be defined as follows: For any real number a, the absolute value of a, denoted |a|, is equal to a if a ≥ 0, and to −a, if a < 0 (see also: inequality). |a| is never negative, as absolute values are always either positive or zero. Put another way, |a| < 0 has no solution for a. Also, it is not necessary that |-a| = a since a can be negative.

The absolute value can be regarded as the distance of a number from zero; indeed the notion of distance in mathematics is a generalisation of the properties of the absolute value. When real numbers are considered as one-dimensional vectors, the absolute value is the magnitude, and the p-norm for any p. Up to a constant factor, every norm in R1 is equal to the absolute value: ||x||=||1||.|x|

Properties

The absolute value has the following properties:

  1. |a| ≥ 0
  2. |a| = 0 iff a = 0.
  3. |ab| = |a||b|
  4. |a/b| = |a| / |b| (if b ≠ 0)
  5. |a+b| ≤ |a| + |b| (the triangle inequality)
  6. |ab| ≥ ||a| − |b||
  7. \left| a \right| = \sqrt{a^2}
  8. |a| ≤ b iff −bab
  9. |a| ≥ b iff a ≤ −b or ba

The last two properties are often used in solving inequalities; for example:

|x − 3| ≤ 9
−9 ≤ x−3 ≤ 9
−6 ≤ x ≤ 12

For real arguments, the absolute value function f(x) = |x| is continuous everywhere and differentiable everywhere except for x = 0. For complex arguments, the function is continuous everywhere but differentiable nowhere (One way to see this is to show that it does not obey the Cauchy-Riemann equations).

For a complex number z = a + ib, one defines the absolute value or modulus to be |z| = √(a2 + b2) = √ (z z*) (see square root and complex conjugate). This notion of absolute value shares the properties 1-6 from above. If one interprets z as a point in the plane, then |z| is the distance of z to the origin.

It is useful to think of the expression |xy| as the distance between the two numbers x and y (on the real number line if x and y are real, and in the complex plane if x and y are complex). By using this notion of distance, both the set of real numbers and the set of complex numbers become metric spaces.

The function is not invertible, because a negative and a positive number have the same absolute value.

Absolute value and complex numbers

\mbox{if }c = a + bi \mbox{ then }|c| = \sqrt{a^2 + b^2}\,\! (the modulus)


Algorithm

In the C programming language, the abs(), labs(), llabs() (in C99), fabs(), fabsf(), and fabsl() functions compute the absolute value of an operand. Coding the integer version of the function is trivial, ignoring the boundary case where the largest negative integer is input:

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.

09-23-2007 01:00:40
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details
Science kits, science lessons, science toys, maths toys, hobby kits, science games and books - these are some of many products that can help give your kid an edge in their science fair projects, and develop a tremendous interest in the study of science. When shopping for a science kit or other supplies, make sure that you carefully review the features and quality of the products. Compare prices by going to several online stores. Read product reviews online or refer to magazines.

Start by looking for your science kit review or science toy review. Compare prices but remember, Price $ is not everything. Quality does matter.
Science Fair Coach
What do science fair judges look out for?
ScienceHound
Science Fair Projects for students of all ages
All Science Fair Projects.com Site
All Science Fair Projects Homepage
Search | Browse | Links | From-our-Editor | Books | Help | Contact | Privacy | Disclaimer | Copyright Notice