User:Phlsph7/Real arithmetic

From Wikipedia, the free encyclopedia

Real arithmetic[edit]

Real arithmetic is the branch of arithmetic that deals with the manipulation of both rational and irrational numbers. Irrational numbers are numbers that cannot be expressed through fractions or repeated decimals. Examples are the root of 2, π, and e (Euler's number). The set of real numbers is represented by the symbol .[1][2][3][4] Unlike rational arithmetic, real arithmetic is closed under exponentiation as long as it uses a positive number as its base. The same is true for the logarithm of positive real numbers as long as the logarithm base is positive and not 1.[5][6][7]

Irrational numbers involve an infinite non-repeating series of decimal digits. Because of this, there is often no simple and accurate way to express the results of arithmetic operations like or . [1][2][3][4] In cases where absolute precision is not required, the problem of calculating arithmetic operations on real numbers is usually addressed by truncation or rounding. For truncation, a certain number of significant digits to the left are kept and additional digits to the right of the last significant digit are removed. For example, the number π has an infinite number of digits starting with 3.14159... . If this number is truncated to 4 significant digits, the result is 3.141. Rounding is a similar process in which the last significant digit is increased by one if the next digit is 5 or greater. If the next digit is less than 5, the last digit remains the same. For example, if the number π is rounded to 4 significant digits, the result is 3.142 because the following digit is a 5.[8][9][10] These methods are essential to allow computers to efficiently perform calculations on real numbers.[11]

Very large and very small real numbers are often expressed using normalized scientific notation. In it, numbers are represented using a so-called significand multiplied by a power of 10. The significand is a digit followed by a decimal point and a series of digits. For example, the normalized scientific notation of the number 8276000 is and the number 0.00735 has the normalized scientific notation of .[12][13]

A common method employed by computers to approximate real 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.[14] 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 errors.[11][14][15] 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 is sometimes different from the result of .[16][17] 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.[18][19][20]

  • Wallis, W. D. (14 March 2013). A Beginner’s Guide to Discrete Mathematics. Springer Science & Business Media. ISBN 978-1-4757-3826-1.
  • Roe, John; deForest, Russ; Jamshidi, Sara (26 April 2018). Mathematics for Sustainability. Springer. ISBN 978-3-319-76660-7.
  • Rossi, Richard J. (5 October 2011). Theorems, Corollaries, Lemmas, and Methods of Proof. John Wiley & Sons. ISBN 978-1-118-03057-8.
  • Reitano, Robert R. (29 January 2010). Introduction to Quantitative Finance: A Math Tool Kit. MIT Press. ISBN 978-0-262-01369-7.
  • Bronshtein, I. N.; Semendyayev, K. A.; Musiol, Gerhard; Mühlig, Heiner (19 March 2015). Handbook of Mathematics. Springer. ISBN 978-3-662-46221-8.
  • EoC staff (2020). "Real number". Encyclopedia of Mathematics. Springer. Retrieved 23 October 2023.
  • Rooney, Anne (15 July 2021). Think Like a Mathematician. The Rosen Publishing Group. ISBN 978-1-4994-7092-5.
  • Young, Cynthia Y. (19 January 2010). Precalculus. John Wiley & Sons. ISBN 978-0-471-75684-2.
  • Young, Cynthia Y. (31 August 2021). Algebra and Trigonometry. John Wiley & Sons. ISBN 978-1-119-77830-1.
  • Koren, Israel (8 October 2018). Computer Arithmetic Algorithms. CRC Press. ISBN 978-1-4398-6371-8.
  • Muller, Jean-Michel; Brisebarre, Nicolas; Dinechin, Florent de; Jeannerod, Claude-Pierre; Lefèvre, Vincent; Melquiond, Guillaume; Revol, Nathalie; Stehlé, Damien; Torres, Serge (11 November 2009). Handbook of Floating-Point Arithmetic. Springer Science & Business Media. ISBN 978-0-8176-4705-6.
  • Swartzlander, Earl E. (19 December 2017). "High-Speed Computer Arithmetic". In Oklobdzija, Vojin G. (ed.). Digital Design and Fabrication. CRC Press. ISBN 978-0-8493-8604-6.
  • Stewart, David E. (1 December 2022). Numerical Analysis: A Graduate Course. Springer Nature. ISBN 978-3-031-08121-7.
  • Meyer, Carl D. (18 May 2023). Matrix Analysis and Applied Linear Algebra: Second Edition. SIAM. ISBN 978-1-61197-744-8.
  • Brent, Richard P.; Zimmermann, Paul (25 November 2010). Modern Computer Arithmetic. Cambridge University Press. ISBN 978-1-139-49228-7.
  • Cryer, C. W. (4 March 2014). A Math Primer for Engineers. IOS Press. ISBN 978-1-61499-299-8.