Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Arithmetic
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Approximations and errors === In science and engineering, numbers represent estimates of physical quantities derived from [[measurement]] or modeling. Unlike mathematically exact numbers such as {{pi}} or {{nobr|{{tmath|\sqrt2}},}} scientifically relevant numerical data are inherently inexact, involving some [[measurement uncertainty]].<ref>{{harvnb|Drosg|2007|pp=1β5}}</ref> One basic way to express the degree of certainty about each number's value and avoid [[false precision]] is to round each measurement to a certain number of digits, called [[significant digit]]s, which are implied to be accurate. For example, a person's height measured with a [[tape measure]] might only be precisely known to the nearest centimeter, so should be presented as 1.62 meters rather than 1.6217 meters. If converted to imperial units, this quantity should be rounded to 64 inches or 63.8 inches rather than 63.7795 inches, to clearly convey the precision of the measurement. When a number is written using ordinary decimal notation, leading zeros are not significant, and trailing zeros of numbers not written with a decimal point are implicitly considered to be non-significant.<ref>{{harvnb|Bohacek|2009|pp=18β19}}</ref> For example, the numbers 0.056 and 1200 each have only 2 significant digits, but the number 40.00 has 4 significant digits. Representing uncertainty using only significant digits is a relatively crude method, with some unintuitive subtleties; explicitly keeping track of an estimate or upper bound of the [[approximation error]] is a more sophisticated approach.<ref>{{multiref | {{harvnb|Higham|2002|pp=3β5}} | {{harvnb|Bohacek|2009|pp=8β19}} }}</ref> In the example, the person's height might be represented as {{nobr|1.62 Β± 0.005}} meters or {{nobr|63.8 Β± 0.2 inches}}.<ref>{{harvnb|Bohacek|2009|pp=18β19}}</ref> In performing calculations with uncertain quantities, the [[propagation of uncertainty|uncertainty should be propagated]] to calculated quantities. When adding or subtracting two or more quantities, add the [[absolute uncertainty|absolute uncertainties]] of each summand together to obtain the absolute uncertainty of the sum. When multiplying or dividing two or more quantities, add the [[relative uncertainty|relative uncertainties]] of each factor together to obtain the relative uncertainty of the product.<ref>{{harvnb|Bohacek|2009|pp=23β30}}</ref> When representing uncertainty by significant digits, uncertainty can be coarsely propagated by rounding the result of adding or subtracting two or more quantities to the leftmost last significant decimal place among the summands, and by rounding the result of multiplying or dividing two or more quantities to the least number of significant digits among the factors.<ref>{{harvnb|Griffin|1935}}</ref> (See {{slink|Significant figures#Arithmetic}}.) More sophisticated methods of dealing with uncertain values include [[interval arithmetic]] and [[affine arithmetic]]. Interval arithmetic describes operations on [[Interval (mathematics)|intervals]]. Intervals can be used to represent a range of values if one does not know the precise magnitude, for example, because of [[measurement error]]s. Interval arithmetic includes operations like addition and multiplication on intervals, as in <math>[1, 2] + [3, 4] = [4, 6]</math> and <math>[1, 2] \times [3, 4] = [3, 8]</math>.<ref>{{multiref | {{harvnb|Moore|Kearfott|Cloud|2009|pp=[https://books.google.com/books?id=kd8FmmN7sAoC&pg=PA10 10β11, 19]}} | {{harvnb|Pharr|Jakob|Humphreys|2023|p=[https://books.google.com/books?id=kUtwEAAAQBAJ&pg=PA1057 1057]}} }}</ref> It is closely related to affine arithmetic, which aims to give more precise results by performing calculations on affine forms rather than intervals. An affine form is a number together with error terms that describe how the number may deviate from the actual magnitude.<ref>{{multiref | {{harvnb|Vaccaro|Pepiciello|2022|pp=[https://books.google.com/books?id=tZxBEAAAQBAJ&pg=PA9 9β11]}} | {{harvnb|Chakraverty|Rout|2022|pp=2β4, 39β40}} }}</ref> The precision of numerical quantities can be expressed uniformly using [[Normalized number|normalized scientific notation]], which is also convenient for concisely representing numbers which are much larger or smaller than 1. Using scientific notation, a number is decomposed into the product of a number between 1 and 10, called the ''[[significand]]'', and 10 raised to some integer power, called the ''exponent''. The significand consists of the significant digits of the number, and is written as a leading digit 1β9 followed by a decimal point and a sequence of digits 0β9. For example, the normalized scientific notation of the number 8276000 is <math>8.276 \times 10^6</math> with significand 8.276 and exponent 6, and the normalized scientific notation of the number 0.00735 is <math>7.35 \times 10^{-3}</math> with significand 7.35 and exponent −3.<ref>{{multiref | {{harvnb|Wallis|2013|p=[https://books.google.com/books?id=ONgRBwAAQBAJ&pg=PA20 20]}} | {{harvnb|Roe|deForest|Jamshidi|2018|p=[https://books.google.com/books?id=3ppYDwAAQBAJ&pg=PA24 24]}} }}</ref> Unlike ordinary decimal notation, where trailing zeros of large numbers are implicitly considered to be non-significant, in scientific notation every digit in the significand is considered significant, and adding trailing zeros indicates higher precision. For example, while the number 1200 implicitly has only 2 significant digits, the number {{tmath|1.20 \times 10^3}} explicitly has 3.<ref>{{harvnb|Lustick|1997}}</ref> A common method employed by computers to approximate real number arithmetic is called [[floating-point arithmetic]]. It represents real numbers similar to the scientific notation through three numbers: a significand, a base, and an exponent.<ref>{{harvnb|Muller|Brisebarre|Dinechin|Jeannerod|2009|pp=[https://books.google.com/books?id=baFvrIOPvncC&pg=PA13 13β16]}}</ref> The precision of the significand is limited by the number of bits allocated to represent it. If an arithmetic operation results in a number that requires more bits than are available, the computer rounds the result to the closest representable number. This leads to [[rounding error]]s.<ref>{{multiref | {{harvnb|Koren|2018|p=[https://books.google.com/books?id=wUBZDwAAQBAJ&pg=PA71 71]}} | {{harvnb|Muller|Brisebarre|Dinechin|Jeannerod|2009|pp=[https://books.google.com/books?id=baFvrIOPvncC&pg=PA13 13β16]}} | {{harvnb|Swartzlander|2017|p=[https://books.google.com/books?id=VOnyWUUUj04C&pg=SA11-PA19 11.19]}} }}</ref> A consequence of this behavior is that certain laws of arithmetic are violated by floating-point arithmetic. For example, floating-point addition is not associative since the rounding errors introduced can depend on the order of the additions. This means that the result of <math>(a + b) + c</math> is sometimes different from the result of {{nobr|<math>a + (b + c)</math>.}}<ref>{{multiref | {{harvnb|Stewart|2022|p=[https://books.google.com/books?id=twafEAAAQBAJ&pg=PA26 26]}} | {{harvnb|Meyer|2023|p=[https://books.google.com/books?id=-X-_EAAAQBAJ&pg=PA234 234]}} }}</ref> The most common technical standard used for floating-point arithmetic is called [[IEEE 754]]. Among other things, it determines how numbers are represented, how arithmetic operations and rounding are performed, and how errors and exceptions are handled.<ref>{{multiref | {{harvnb|Muller|Brisebarre|Dinechin|Jeannerod|2009|p=[https://books.google.com/books?id=baFvrIOPvncC&pg=PA54 54]}} | {{harvnb|Brent|Zimmermann|2010|p=[https://books.google.com/books?id=-8wuH5AwbwMC&pg=PA79 79]}} | {{harvnb|Cryer|2014|p=[https://books.google.com/books?id=_x3pAwAAQBAJ&pg=PA450 450]}} }}</ref> In cases where computation speed is not a limiting factor, it is possible to use [[arbitrary-precision arithmetic]], for which the precision of calculations is only restricted by the computer's memory.<ref>{{harvnb|Duffy|2018|p=[https://books.google.com/books?id=BTttDwAAQBAJ&pg=PT1225 1225]}}</ref>
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Arithmetic
(section)
Add topic