Numerics and Math

  • Peter Van Weert
  • Marc Gregoire


The <cmath> header Mathematical functions defines an extensive collection of common math functions in the std namespace. Unless otherwise specified, all functions are overloaded to accept all standard numerical types, with the following rules for determining the return type.


Random Number Pseudorandom Number Generate Pseudorandom Number Ratio Type Integer Type 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Supplementary material (43 kb)
9781484218754_Source Code (zip 44 kb)

Copyright information

© Peter Van Weert and Marc Gregoire 2016

Authors and Affiliations

  • Peter Van Weert
    • 1
  • Marc Gregoire
    • 2
  1. 1.Kessel-LoBelgium
  2. 2.MeldertBelgium

Personalised recommendations