%@ Language=VBScript %> <% Response.Status="301 Moved Permanently" Response.AddHeader "Location","http://www.brighton-webs.co.uk/maths/abs.htm" %>
|
Brighton Webs Ltd. statistical and data services for industry
|
||||||||
|
Home Index Feedback |
Absolute Function The absolute function returns the magnitude of a number. The result is always zero or a positive number. If you have $500 in the bank, that sum appears as +500 dollars on the statement, then something falls off your life and you end up owing the bank $500, the statement then shows -500 dollars. In both cases, the amount of money (the magnitude) is $500, the positive sign indicates the bank can give you $500, whilst the negative one suggests they think you're going to give them $500. A more formal example in tabular form:
In graphic form: Example The page on dispersion shows how the absolute function is used in the statistic known as the mean absolute deviation. Notation The vertical bars to the left and right of x in the function below are the notation for an absolute value. abs(x)=|x| Spreadsheets Both MS Excel and Google Docs spreadsheet provide the absolute function, e.g.
Programming Languages Most programming languages which have a math library include the absolute function, usually in the form:
Page updated: 21-May-09 |
||||||||
|
For more information: info@brighton-webs.co.uk |
|||||||||