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.
References
M. Abramowitz, I.A. Stegun, Handbook of Mathematical Functions, \(9{th}\) Printing (Dover, New York, 1972)
B. Dawes, D. Abrahams, Boost C++ Libraries (2012), http://www.boost.org
A. Erdélyi, W. Magnus, F. Oberhettinger, F.G. Tricomi, Higher Transcendental Functions, vols. 1–3 (Krieger, New York, 1981)
S.R. Finch, Mathematical Constants (Cambridge University Press, Cambridge, 2003)
A. Gil, J. Segura, N.M. Temme, Numerical Methods for Special Functions (Society for Industrial and Applied Mathematics, Philadelphia, 2007)
C. Hastings, Approximations for Digital Computers (Princeton University Press, Princeton, 1955)
IEEE Computer Society, IEEE Std 1003.1–2008, IEEE Standard 754 (2008), http://ieeexplore.ieee.org/servlet/opac?punumber=4610933
ISO/IEC, ISO/IEC 9899:1999: Programming Languages—C (International Organization for Standardization, Geneva, 1999)
ISO/IEC, ISO/IEC 14882:2011: Information Technology—Programming Languages—C++ (International Organization for Standardization, Geneva, 2011)
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)
D.E. Knuth, The Art of Computer Programming, vols. 1–3, 3rd edn. (Addison-Wesley, Boston, 1998)
J. Maddock, C. Kormanyos, Boost Multiprecision (2013), http://www.boost.org/doc/libs/1_58_0/libs/multiprecision/doc/html/index.html
J.M. Muller, Elementary Functions: Algorithms and Implementation (Birkhäuser, Boston, 2006)
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)
F.W.J. Olver, D.W. Lozier, R.F. Boisvert, C.W. Clark, NIST Handbook of Mathematical Functions (Cambridge University Press, Cambridge, 2010)
A.A. Stepanov, D.E. Rose, From Mathematics to Generic Programming (Addison-Wesley, Boston, 2014)
S. Zhang, J. Jin, Computation of Special Functions (Wiley, New York, 1996)
Author information
Authors and Affiliations
Corresponding author
Rights 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)