Skip to main content

Symbolic Calculation Behind Floating-Point Arithmetic: Didactic Examples and Experiment Using CAS

  • Conference paper
  • First Online:
Computational Science – ICCS 2023 (ICCS 2023)

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 89.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 119.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. The GNU MPFR (multiple-precision floating-point computations) Library. https://www.mpfr.org

  2. IEEE 754 Floating Point Standard. https://en.wikipedia.org/wiki/IEEE_754

  3. 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

  4. Goldberg, D.: What every computer scientist should know about floating point arithmetic. ACM Comput. Surv. 23, 5–48 (1991)

    Article  Google Scholar 

  5. Muller, J.-M., et al.: Handbook of Floating-Point Arithmetic. Birkhäuser, Boston (2010)

    Book  MATH  Google Scholar 

  6. Sauer, T.: Numerical Analysis, 3rd edn. Pearson (2017)

    Google Scholar 

  7. Stallings, W.: Computer Organization and Architecture, 6th edn. Prentice Hall, Upper Saddle River (2003)

    MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Włodzimierz Wojas .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics