Absolute value

From Maths
Revision as of 16:08, 7 March 2015 by Alec (Talk | contribs) (Created page with "The absolute value is sometimes called "abs" ==Definition== The absolute value is a function <math>|\cdot|:\mathbb{R}\rightarrow\mathbb{R}</math> given by: <mat...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The absolute value is sometimes called "abs"

Definition

The absolute value is a function [math]|\cdot|:\mathbb{R}\rightarrow\mathbb{R}[/math] given by:

[math]|x|=\left\{\begin{array}{lr} x & x\ge 0\\ -x & \text{otherwise} \end{array}\right.[/math]

It simply returns the positive value of a number.

Note

More strictly the function should be given as: [math]|\cdot|:\mathbb{R}\rightarrow\mathbb{R}_{\ge 0}[/math]

Examples

  1. [math]|-2|=2[/math]
  2. [math]|2|=2[/math]