Abstract
Floating-point arithmetic (FP) is taught at universities in the framework of different academic courses, for example: Numerical Analysis, Computer Architecture or Operational Systems. In this paper we present some simple “pathological” and “non-pathological” examples for comparison with symbolic calculations which lie behind calculations in FP with double precision. The CAS programs: Mathematica and wxMaxima are used for calculation. We explain, by making calculations directly from the definition of double precision, why in the presented examples such final results were obtained. We present a didactic experiment for students of the Informatics Faculty of Warsaw University of Life Sciences within the course of Numerical Methods.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
The GNU MPFR (multiple-precision floating-point computations) Library. https://www.mpfr.org
IEEE 754 Floating Point Standard. https://en.wikipedia.org/wiki/IEEE_754
Arnold, J.: An Introduction to Floating-Point Arithmetic and Computation, CERN OpenLab, 9 May 2017. https://indico.cern.ch/event/626147/attachments/1456066/2247140/FloatingPoint.Handout.pdf
Goldberg, D.: What every computer scientist should know about floating point arithmetic. ACM Comput. Surv. 23, 5–48 (1991)
Muller, J.-M., et al.: Handbook of Floating-Point Arithmetic. Birkhäuser, Boston (2010)
Sauer, T.: Numerical Analysis, 3rd edn. Pearson (2017)
Stallings, W.: Computer Organization and Architecture, 6th edn. Prentice Hall, Upper Saddle River (2003)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Wojas, W., Krupa, J. (2023). Symbolic Calculation Behind Floating-Point Arithmetic: Didactic Examples and Experiment Using CAS. In: Mikyška, J., de Mulatier, C., Paszynski, M., Krzhizhanovskaya, V.V., Dongarra, J.J., Sloot, P.M. (eds) Computational Science – ICCS 2023. ICCS 2023. Lecture Notes in Computer Science, vol 10477. Springer, Cham. https://doi.org/10.1007/978-3-031-36030-5_56
Download citation
DOI: https://doi.org/10.1007/978-3-031-36030-5_56
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-36029-9
Online ISBN: 978-3-031-36030-5
eBook Packages: Computer ScienceComputer Science (R0)