Skip to main content

Floating-Point Mathematics

  • Chapter
  • First Online:
  • 3237 Accesses

Abstract

This chapter describes floating-point mathematics for real-time C++ using built-in floating-point types such as

and

. The first sections of this chapter introduce floating-point arithmetic, mathematical constants, elementary transcendental functions and higher transcendental functions. The last sections of this chapter cover more advanced topics including complex-numbered mathematics, compile-time evaluation of floating-point functions and generic numeric programming.

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

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. M. Abramowitz, I.A. Stegun, Handbook of Mathematical Functions, \(9{th}\) Printing (Dover, New York, 1972)

    Google Scholar 

  2. B. Dawes, D. Abrahams, Boost C++ Libraries (2012), http://www.boost.org

  3. A. Erdélyi, W. Magnus, F. Oberhettinger, F.G. Tricomi, Higher Transcendental Functions, vols. 1–3 (Krieger, New York, 1981)

    Google Scholar 

  4. S.R. Finch, Mathematical Constants (Cambridge University Press, Cambridge, 2003)

    Google Scholar 

  5. A. Gil, J. Segura, N.M. Temme, Numerical Methods for Special Functions (Society for Industrial and Applied Mathematics, Philadelphia, 2007)

    Google Scholar 

  6. C. Hastings, Approximations for Digital Computers (Princeton University Press, Princeton, 1955)

    Google Scholar 

  7. IEEE Computer Society, IEEE Std 1003.1–2008, IEEE Standard 754 (2008), http://ieeexplore.ieee.org/servlet/opac?punumber=4610933

  8. ISO/IEC, ISO/IEC 9899:1999: Programming Languages—C (International Organization for Standardization, Geneva, 1999)

    Google Scholar 

  9. ISO/IEC, ISO/IEC 14882:2011: Information Technology—Programming Languages—C++ (International Organization for Standardization, Geneva, 2011)

    Google Scholar 

  10. ISO/IEC, ISO/IEC 29124:2010: Information Technology—Programming Languages, Their Environments and System Software Interfaces—Extensions to the C++ Library to Support Mathematical Special Functions (International Organization for Standardization, Geneva, 2010)

    Google Scholar 

  11. D.E. Knuth, The Art of Computer Programming, vols. 1–3, 3rd edn. (Addison-Wesley, Boston, 1998)

    Google Scholar 

  12. J. Maddock, C. Kormanyos, Boost Multiprecision (2013), http://www.boost.org/doc/libs/1_58_0/libs/multiprecision/doc/html/index.html

  13. J.M. Muller, Elementary Functions: Algorithms and Implementation (Birkhäuser, Boston, 2006)

    Google Scholar 

  14. J.M. Muller, N. Brisebarre, F. de Dinechin, C.M. Jeannerod, V. Lefèvre, G. Melquiond, N. Revol, D. Stehlé, T. Torres, Handbook of Floating-Point Arithmetic (Birkhäuser, Boston, 2010)

    Google Scholar 

  15. F.W.J. Olver, D.W. Lozier, R.F. Boisvert, C.W. Clark, NIST Handbook of Mathematical Functions (Cambridge University Press, Cambridge, 2010)

    Google Scholar 

  16. A.A. Stepanov, D.E. Rose, From Mathematics to Generic Programming (Addison-Wesley, Boston, 2014)

    Google Scholar 

  17. S. Zhang, J. Jin, Computation of Special Functions (Wiley, New York, 1996)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Christopher Kormanyos .

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

Kormanyos, C. (2015). Floating-Point Mathematics. In: Real-Time C++. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-47810-3_12

Download citation

  • DOI: https://doi.org/10.1007/978-3-662-47810-3_12

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-662-47809-7

  • Online ISBN: 978-3-662-47810-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics